]> asedeno.scripts.mit.edu Git - linux.git/commit
ext4: do not unnecessarily allocate buffer in recently_deleted()
authorJan Kara <jack@suse.cz>
Thu, 24 Aug 2017 15:52:21 +0000 (11:52 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 24 Aug 2017 15:52:21 +0000 (11:52 -0400)
commit4f9d956d1939f97e2cb278b9615b6c683cd90e97
treeb5dcabfa8a15252ab29d6a3bbac7040ea8ddb7df
parent32aaf194201e98db4235b7b71ac62a22e2ac355f
ext4: do not unnecessarily allocate buffer in recently_deleted()

In recently_deleted() function we want to check whether inode is still
cached in buffer cache. Use sb_find_get_block() for that instead of
sb_getblk() to avoid unnecessary allocation of bdev page and buffer
heads.

Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/ialloc.c