projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6fb03f3
)
f2fs: handle inline data independently in f2fs_bmap
author
Chao Yu
<chao2.yu@samsung.com>
Tue, 22 Apr 2014 05:34:01 +0000
(13:34 +0800)
committer
Jaegeuk Kim
<jaegeuk.kim@samsung.com>
Wed, 7 May 2014 01:21:56 +0000
(10:21 +0900)
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>
fs/f2fs/data.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/f2fs/data.c
b/fs/f2fs/data.c
index 6b89b2517edf77c9ae62fcb8484f07954fe132fa..150c12ace4af2d8aed15892a36e8d6368f40e24e 100644
(file)
--- 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);
}