From: Hou Pengyang Subject: [PATCH 4/4] f2fs: unlock dnode before IPU Date: Tue, 25 Apr 2017 12:45:15 +0000 Message-ID: <20170425124515.160446-5-houpengyang@huawei.com> References: <20170425124515.160446-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-3.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1d2zqi-000543-2Z for linux-f2fs-devel@lists.sourceforge.net; Tue, 25 Apr 2017 12:45:44 +0000 Received: from szxga01-in.huawei.com ([45.249.212.187] helo=dggrg01-dlp.huawei.com) by sog-mx-3.v43.ch3.sourceforge.com with esmtps (TLSv1:RC4-SHA:128) (Exim 4.76) id 1d2zqh-0003Ht-7J for linux-f2fs-devel@lists.sourceforge.net; Tue, 25 Apr 2017 12:45:44 +0000 In-Reply-To: <20170425124515.160446-1-houpengyang@huawei.com> 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 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 9bf9c7d..1d7157b 100644 --- a/fs/f2fs/data.c +++ b/fs/f2fs/data.c @@ -1381,9 +1381,11 @@ int do_write_data_page(struct f2fs_io_info *fio) */ if (need_inplace_update(fio)) { f2fs_bug_on(fio->sbi, fio->cp_rwsem_locked); + f2fs_put_dnode(&dn); err = rewrite_data_page(fio); trace_f2fs_do_write_data_page(fio->page, IPU); set_inode_flag(inode, FI_UPDATE_WRITE); + return err; } else { if (!fio->cp_rwsem_locked) f2fs_lock_op(fio->sbi); -- 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