Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1205853
| From | Chao Yu <chao2.yu@samsung.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | RE: [f2fs-dev] [PATCH] f2fs: do not write any node pages related to orphan inodes |
| Date | 2015-08-12 11:50 +0200 |
| Message-ID | <pWAPx-Bo-23@gated-at.bofh.it> (permalink) |
| References | <pWpU6-1pu-17@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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 <jaegeuk@kernel.org> > --- > 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/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH] f2fs: do not write any node pages related to orphan inodes Jaegeuk Kim <jaegeuk@kernel.org> - 2015-08-12 00:10 +0200
RE: [f2fs-dev] [PATCH] f2fs: do not write any node pages related to orphan inodes Chao Yu <chao2.yu@samsung.com> - 2015-08-12 11:50 +0200
Re: [f2fs-dev] [PATCH v2] f2fs: do not write any node pages related to orphan inodes Jaegeuk Kim <jaegeuk@kernel.org> - 2015-08-12 19:20 +0200
csiph-web