From: Chao Yu Date: Tue, 22 Apr 2014 05:34:01 +0000 (+0800) Subject: f2fs: handle inline data independently in f2fs_bmap X-Git-Tag: v4.9.8~6287^2~36 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=454ae7e519f90db11c0ae082df12a162d2e206ce;p=platform%2Fkernel%2Flinux-rpi3.git f2fs: handle inline data independently in f2fs_bmap We'd better handle inline data case independently in f2fs_bmap(). It can reduce our handling time in f2fs_bmap(). Signed-off-by: Chao Yu Signed-off-by: Jaegeuk Kim --- diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c index 6b89b25..150c12a 100644 --- a/fs/f2fs/data.c +++ b/fs/f2fs/data.c @@ -1058,6 +1058,11 @@ static int f2fs_set_data_page_dirty(struct page *page) static sector_t f2fs_bmap(struct address_space *mapping, sector_t block) { + struct inode *inode = mapping->host; + + if (f2fs_has_inline_data(inode)) + return 0; + return generic_block_bmap(mapping, block, get_data_block); }