Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933784AbbHLJqS (ORCPT ); Wed, 12 Aug 2015 05:46:18 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:53054 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751692AbbHLJqN (ORCPT ); Wed, 12 Aug 2015 05:46:13 -0400 X-AuditID: cbfee61b-f79706d000001b96-38-55cb15e480a4 From: Chao Yu To: "'Jaegeuk Kim'" Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net References: <1439330562-17646-1-git-send-email-jaegeuk@kernel.org> In-reply-to: <1439330562-17646-1-git-send-email-jaegeuk@kernel.org> Subject: RE: [f2fs-dev] [PATCH] f2fs: do not write any node pages related to orphan inodes Date: Wed, 12 Aug 2015 17:45:28 +0800 Message-id: <00b901d0d4e3$b9a4e2c0$2ceea840$@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Mailer: Microsoft Outlook 14.0 Thread-index: AQGJVdkfIGkXi0FRmB7miP6IXffPR56WmnoQ Content-language: zh-cn X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrOLMWRmVeSWpSXmKPExsVy+t9jAd0noqdDDT4dU7N4sn4Ws8WlRe4W e/aeZLG4vGsOmwOLx6ZVnWweuxd8ZvL4vEkugDmKyyYlNSezLLVI3y6BK6Pl0iXGggXcFRte zmBsYJzD2cXIySEhYCJx6stFJghbTOLCvfVsXYxcHEICSxklJj2/zQrhvGKUeDjzCSNIFZuA isTyjv9gHSICahK9+6aA2cwCmRIT+l+wg9hCAk4SEw/uZwGxOQWcJWZP+QhmCwvESNx9c5UN xGYRUJXYsXo6UJyDg1fAUuLj7iyQMK+AoMSPyfdYIEZqSazfeRxqvLzE5jVvmSEOVZDYcfY1 I0iriICRxMNNZhAl4hIbj9ximcAoNAvJpFlIJs1CMmkWkpYFjCyrGCVSC5ILipPSc43yUsv1 ihNzi0vz0vWS83M3MYKD/5n0DsbDu9wPMQpwMCrx8BpMPBUqxJpYVlyZe4hRgoNZSYS35z5Q iDclsbIqtSg/vqg0J7X4EKM0B4uSOK++yaZQIYH0xJLU7NTUgtQimCwTB6dUA6O0bmmFVcsX S/YDLL+2Tdz03Sr31zT3y4wPWUtWrz3rZvEvcV9C7cfw6ICmT1/nTP9rIMkTVmUU03eIx86Q 5WpvzFtuQ1+t9ACOohD+h+7FZRtusXfYSZT5fLe7bDjFu/BI7W+FdnE7RdMfDJ7eF39IiLmz /dlQN9vMfZ9TZvt6LYuqx9LmSizFGYmGWsxFxYkAG5Gf33oCAAA= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1643 Lines: 47 Hi Jaegeuk, > -----Original Message----- > From: Jaegeuk Kim [mailto:jaegeuk@kernel.org] > Sent: Wednesday, August 12, 2015 6:03 AM > To: linux-kernel@vger.kernel.org; linux-fsdevel@vger.kernel.org; > linux-f2fs-devel@lists.sourceforge.net > Cc: Jaegeuk Kim > Subject: [f2fs-dev] [PATCH] f2fs: do not write any node pages related to orphan inodes > > We should not write node pages when deleting orphan inodes. > In order to do that, we can eaisly set POR_DOING flag earlier before entering > orphan inode routine. If no error occurs in recover_orphan_inodes, it will clear SBI_POR_DOING before return, so our protect region is broken since we remove SBI_POR_DOING setting in the beginning of recover_fsync_data. How about removing all SBI_POR_DOING related ops in recover_orphan_inodes? > > Signed-off-by: Jaegeuk Kim > --- > fs/f2fs/recovery.c | 3 --- > fs/f2fs/super.c | 6 +++++- > 2 files changed, 5 insertions(+), 4 deletions(-) > > diff --git a/fs/f2fs/recovery.c b/fs/f2fs/recovery.c > index d2ef0c9..cdcca7c 100644 > --- a/fs/f2fs/recovery.c > +++ b/fs/f2fs/recovery.c > @@ -545,9 +545,6 @@ int recover_fsync_data(struct f2fs_sb_info *sbi) > > INIT_LIST_HEAD(&inode_list); > > - /* step #1: find fsynced inode numbers */ Nitpick, this makes the left comment "/* step #2: recover data */" looks strange, how about modifying the left one too? Thanks, -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/