Skip to contentSkip to conversation

f2fs: handle inline data independently in f2fs_bmap

PATCH New Chao Yu 1 participant 1 message Apr 22, 2014

Subsystems (2)
lore
Share & tools
lore

Chao Yu

author
#0 lore raw

PATCH 1/2 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().

---
 fs/f2fs/data.c |    5 +++++
 1 file changed, 5 insertions(+)
fs/f2fs/data.c +5 -0
index 6b89b25..150c12a 100644
@@ -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);
 }
 
Signature · 1 line
1.7.9.5