From: Hou Pengyang Subject: [PATCH 0/3] optimize f2fs IPU v2 Date: Sat, 22 Apr 2017 09:22:20 +0000 Message-ID: <20170422092223.118496-1-houpengyang@huawei.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from sog-mx-3.v43.ch3.sourceforge.com ([172.29.43.193] helo=mx.sourceforge.net) by sfs-ml-2.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1d1rFd-0006mU-I0 for linux-f2fs-devel@lists.sourceforge.net; Sat, 22 Apr 2017 09:22:45 +0000 Received: from szxga03-in.huawei.com ([45.249.212.189] helo=dggrg03-dlp.huawei.com) by sog-mx-3.v43.ch3.sourceforge.com with esmtps (TLSv1:RC4-SHA:128) (Exim 4.76) id 1d1rFb-0007rx-DN for linux-f2fs-devel@lists.sourceforge.net; Sat, 22 Apr 2017 09:22:45 +0000 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net To: jaegeuk@kernel.org, chao@kernel.org, yuchao0@huawei.com Cc: linux-f2fs-devel@lists.sourceforge.net 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 if(f2fs_encrypt_page()) XXX to err = f2fs_encrypt_page() if (err) XXX otherwise do_write_data_page would return a wrong return value. 2) extract need_in_place_block(fio, page) for IPU checking. Hou Pengyang (3): f2fs: reconstruct code to write a data page f2fs: lookup extent cache first under IPU scenario f2fs: unlock dnode before IPU fs/f2fs/data.c | 109 ++++++++++++++++++++++++++++++++++++++++++++------------- 1 file changed, 84 insertions(+), 25 deletions(-) -- 2.10.1 ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot