diff options
author | Haibo Liu <HaiboLiu6@gmai.com> | 2012-07-09 16:29:28 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2012-07-09 16:29:28 -0400 |
commit | 62a1391ddd6fbe82fc02154dc760bcc5cbc9ef68 (patch) | |
tree | d774785ccc48bb178da3d85af9ca0a5f3c197f4c /fs/ext4 | |
parent | e7bcf8230498b9568e09d74e296e71a01e024006 (diff) | |
download | op-kernel-dev-62a1391ddd6fbe82fc02154dc760bcc5cbc9ef68.zip op-kernel-dev-62a1391ddd6fbe82fc02154dc760bcc5cbc9ef68.tar.gz |
ext4: remove an unused statement in ext4_mb_get_buddy_page_lock()
In this patch, the statement "poff = block % blocks_per_page"
in ext4_mb_get_buddy_page_lock has no effect.
It will be optimized out by the compiler, but it's better to remove it.
Signed-off-by: Haibo Liu <HaiboLiu6@gmail.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4')
-rw-r--r-- | fs/ext4/mballoc.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c index 9f1e655..ca376e7d 100644 --- a/fs/ext4/mballoc.c +++ b/fs/ext4/mballoc.c @@ -969,7 +969,6 @@ static int ext4_mb_get_buddy_page_lock(struct super_block *sb, block++; pnum = block / blocks_per_page; - poff = block % blocks_per_page; page = find_or_create_page(inode->i_mapping, pnum, GFP_NOFS); if (!page) return -EIO; |