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

2017-04-24 Thread Jaegeuk Kim
On 04/22, Hou Pengyang wrote: > This patch introduces two functions: > > 1) f2fs_encrypt_page -- encrypt data page before submit_bio > 2) do_rewrite_data_page -- IPU rewrite I feel this makes the codes more complicated. How about this? >From 939bfa8bdd9a75f4c83914ed84c50e3c35ac556d M

[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 1/3] f2fs: reconstruct code to write a data page

2017-04-21 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 --- fs/f2fs/d