aboutsummaryrefslogtreecommitdiffstats
path: root/fs/f2fs/data.c
diff options
context:
space:
mode:
authorChao Yu <chao2.yu@samsung.com>2014-04-22 01:34:01 -0400
committerJaegeuk Kim <jaegeuk.kim@samsung.com>2014-05-06 21:21:56 -0400
commit454ae7e519f90db11c0ae082df12a162d2e206ce (patch)
tree2f05447d9c63db2b72bbcd1dc5a50b4ca9650902 /fs/f2fs/data.c
parent6fb03f3a40805a412c9b285010ffdc2e7563f81b (diff)
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 <chao2.yu@samsung.com> Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
Diffstat (limited to 'fs/f2fs/data.c')
-rw-r--r--fs/f2fs/data.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c
index 6b89b2517edf..150c12ace4af 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)
1058 1058
1059static sector_t f2fs_bmap(struct address_space *mapping, sector_t block) 1059static sector_t f2fs_bmap(struct address_space *mapping, sector_t block)
1060{ 1060{
1061 struct inode *inode = mapping->host;
1062
1063 if (f2fs_has_inline_data(inode))
1064 return 0;
1065
1061 return generic_block_bmap(mapping, block, get_data_block); 1066 return generic_block_bmap(mapping, block, get_data_block);
1062} 1067}
1063 1068