git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ext4: do not unnecessarily allocate buffer in recently_deleted()
[sfrench/cifs-2.6.git]
/
fs
/
ext4
/
ialloc.c
diff --git
a/fs/ext4/ialloc.c
b/fs/ext4/ialloc.c
index 507bfb3344d41d1cc857022e61eb7c09ab184231..0d03e73dccaf1815e59020c31206eafd3c1d6bbb 100644
(file)
--- a/
fs/ext4/ialloc.c
+++ b/
fs/ext4/ialloc.c
@@
-707,9
+707,9
@@
static int recently_deleted(struct super_block *sb, ext4_group_t group, int ino)
if (unlikely(!gdp))
return 0;
if (unlikely(!gdp))
return 0;
- bh = sb_
getbl
k(sb, ext4_inode_table(sb, gdp) +
+ bh = sb_
find_get_bloc
k(sb, ext4_inode_table(sb, gdp) +
(ino / inodes_per_block));
(ino / inodes_per_block));
- if (
unlikely(!bh)
|| !buffer_uptodate(bh))
+ if (
!bh
|| !buffer_uptodate(bh))
/*
* If the block is not in the buffer cache, then it
* must have been written out.
/*
* If the block is not in the buffer cache, then it
* must have been written out.