Browse Source

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>
Haibo Liu 13 years ago
parent
commit
62a1391ddd
1 changed files with 0 additions and 1 deletions
  1. 0 1
      fs/ext4/mballoc.c

+ 0 - 1
fs/ext4/mballoc.c

@@ -969,7 +969,6 @@ static int ext4_mb_get_buddy_page_lock(struct super_block *sb,
 
 
 	block++;
 	block++;
 	pnum = block / blocks_per_page;
 	pnum = block / blocks_per_page;
-	poff = block % blocks_per_page;
 	page = find_or_create_page(inode->i_mapping, pnum, GFP_NOFS);
 	page = find_or_create_page(inode->i_mapping, pnum, GFP_NOFS);
 	if (!page)
 	if (!page)
 		return -EIO;
 		return -EIO;