[f2fs-dev] [PATCH 2/3] f2fs: lookup extent cache first under IPU scenario

2017-04-22 Thread Hou Pengyang
Signed-off-by: Hou Pengyang Signed-off-by: Chao Yu --- fs/f2fs/data.c | 24 1 file changed, 24 insertions(+) diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c index 6b18750..1c99ae1 100644 --- a/fs/f2fs/data.c +++ b/fs/f2fs/data.c @@ -1367,8 +1367,32 @@ int do_write_data_pag

[f2fs-dev] [PATCH 1/3] f2fs: reconstruct code to write a data page

2017-04-22 Thread Hou Pengyang
This patch introduces two functions: 1) f2fs_encrypt_page -- encrypt data page before submit_bio 2) do_rewrite_data_page -- IPU rewrite The two functions are extraced from do_write_data_page, logic in do_write_data_page stays unchanged. Signed-off-by: Hou Pengyang Signed-off-by:

[f2fs-dev] [PATCH 0/3] optimize f2fs IPU v2

2017-04-22 Thread Hou Pengyang
For IPU, there is no need to read dnode, these three patches are to fix this issue. patch 1): Reconstruct code in do_write_data_page, code logic stays unchanged, patch 2): Under high-probability IPU scenario, we check extent_tree first patch 3): Unlock dnode before IPU v1->v2: 1) fix

[f2fs-dev] [PATCH 3/3] f2fs: unlock dnode before IPU

2017-04-22 Thread Hou Pengyang
Signed-off-by: Hou Pengyang --- fs/f2fs/data.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c index 1c99ae1..a0df451 100644 --- a/fs/f2fs/data.c +++ b/fs/f2fs/data.c @@ -1418,7 +1418,9 @@ int do_write_data_page(struct f2fs_io_info *fio) */ i

[f2fs-dev] [PATCH] f2fs: seperate read nat page from nat_tree_lock

2017-04-22 Thread Yunlei He
This patch seperate nat page read io from nat_tree_lock. -lock_page -get_node_info() -current_nat_addr .. -> write_checkpoint -get_meta_page Because we lock node page, we can make sure no other th