Re: [PATCH 05/16] f2fs: add checkpoint operations

2012-10-15 Thread NeilBrown
On Sat, 13 Oct 2012 00:49:06 +0900 Jaegeuk Kim wrote: > 2012-10-11 (목), 09:24 +1100, NeilBrown: > > On Fri, 05 Oct 2012 20:59:29 +0900 김재극 wrote: > > > > > +static void do_checkpoint(struct f2fs_sb_info *sbi, bool is_umount) > > > +{ > > > + struct f2fs_checkpoint *ckpt = F2FS_CKPT(sbi); > > >

Re: [PATCH 05/16] f2fs: add checkpoint operations

2012-10-15 Thread NeilBrown
On Sat, 13 Oct 2012 00:49:06 +0900 Jaegeuk Kim jaegeuk@gmail.com wrote: 2012-10-11 (목), 09:24 +1100, NeilBrown: On Fri, 05 Oct 2012 20:59:29 +0900 김재극 jaegeuk@samsung.com wrote: +static void do_checkpoint(struct f2fs_sb_info *sbi, bool is_umount) +{ + struct f2fs_checkpoint

Re: [PATCH 05/16] f2fs: add checkpoint operations

2012-10-12 Thread Jaegeuk Kim
2012-10-11 (목), 09:24 +1100, NeilBrown: > On Fri, 05 Oct 2012 20:59:29 +0900 김재극 wrote: > > > +static void do_checkpoint(struct f2fs_sb_info *sbi, bool is_umount) > > +{ > > + struct f2fs_checkpoint *ckpt = F2FS_CKPT(sbi); > > + nid_t last_nid = 0; > > + int nat_upd_blkoff[3]; > > +

Re: [PATCH 05/16] f2fs: add checkpoint operations

2012-10-12 Thread Jaegeuk Kim
2012-10-11 (목), 09:24 +1100, NeilBrown: On Fri, 05 Oct 2012 20:59:29 +0900 김재극 jaegeuk@samsung.com wrote: +static void do_checkpoint(struct f2fs_sb_info *sbi, bool is_umount) +{ + struct f2fs_checkpoint *ckpt = F2FS_CKPT(sbi); + nid_t last_nid = 0; + int nat_upd_blkoff[3];

Re: [PATCH 05/16] f2fs: add checkpoint operations

2012-10-10 Thread NeilBrown
On Fri, 05 Oct 2012 20:59:29 +0900 김재극 wrote: > +static void do_checkpoint(struct f2fs_sb_info *sbi, bool is_umount) > +{ > + struct f2fs_checkpoint *ckpt = F2FS_CKPT(sbi); > + nid_t last_nid = 0; > + int nat_upd_blkoff[3]; > + block_t start_blk; > + struct page *cp_page; > +

Re: [PATCH 05/16] f2fs: add checkpoint operations

2012-10-10 Thread NeilBrown
On Fri, 05 Oct 2012 20:59:29 +0900 김재극 jaegeuk@samsung.com wrote: +static void do_checkpoint(struct f2fs_sb_info *sbi, bool is_umount) +{ + struct f2fs_checkpoint *ckpt = F2FS_CKPT(sbi); + nid_t last_nid = 0; + int nat_upd_blkoff[3]; + block_t start_blk; + struct

[PATCH 05/16] f2fs: add checkpoint operations

2012-10-05 Thread 김재극
This adds functions required by the checkpoint operations. Basically, f2fs adopts a roll-back model with checkpoint blocks written in the CP area. The checkpoint procedure includes as follows. - write_checkpoint() 1. block_operations() freezes VFS calls. 2. submit cached bios. 3.

[PATCH 05/16] f2fs: add checkpoint operations

2012-10-05 Thread 김재극
This adds functions required by the checkpoint operations. Basically, f2fs adopts a roll-back model with checkpoint blocks written in the CP area. The checkpoint procedure includes as follows. - write_checkpoint() 1. block_operations() freezes VFS calls. 2. submit cached bios. 3.