projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e7bcf82
)
ext4: remove an unused statement in ext4_mb_get_buddy_page_lock()
author
Haibo Liu
<HaiboLiu6@gmai.com>
Mon, 9 Jul 2012 20:29:28 +0000
(16:29 -0400)
committer
Theodore 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
patch
|
blob
|
blame
|
history
diff --git
a/fs/ext4/mballoc.c
b/fs/ext4/mballoc.c
index 9f1e655979b90afb73440495ee6bb9f0a6f9ab7e..ca376e7d716aab614f2e58b822ad051e44167e14 100644
(file)
--- 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;