ext4: remove an unused statement in ext4_mb_get_buddy_page_lock()
authorHaibo Liu <HaiboLiu6@gmai.com>
Mon, 9 Jul 2012 20:29:28 +0000 (16:29 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 9 Jul 2012 20:29:28 +0000 (16:29 -0400)
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>
fs/ext4/mballoc.c

index 9f1e655979b90afb73440495ee6bb9f0a6f9ab7e..ca376e7d716aab614f2e58b822ad051e44167e14 100644 (file)
@@ -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;