Re: [PATCH 03/16] f2fs: add superblock and major in-memory structures

2012-10-12 Thread Jaegeuk Kim
2012-10-11 (목), 09:50 +1100, NeilBrown: > On Fri, 05 Oct 2012 20:57:46 +0900 김재극 wrote: > > > > +static inline unsigned int curseg_segno(struct f2fs_sb_info *sbi, > > + int type) > > +{ > > + struct curseg_info *curseg = CURSEG_I(sbi, type); > > + unsigned int segno; > > + mutex_

Re: [PATCH 03/16] f2fs: add superblock and major in-memory structures

2012-10-10 Thread NeilBrown
On Fri, 05 Oct 2012 20:57:46 +0900 김재극 wrote: > +static inline unsigned int curseg_segno(struct f2fs_sb_info *sbi, > + int type) > +{ > + struct curseg_info *curseg = CURSEG_I(sbi, type); > + unsigned int segno; > + mutex_lock(&curseg->curseg_mutex); > + segno = curse

Re: [PATCH 03/16] f2fs: add superblock and major in-memory structures

2012-10-09 Thread David Sterba
On Tue, Oct 09, 2012 at 02:13:29PM +0900, Chul Lee wrote: > > > + block_t data_blkaddr; > > > +}; > > > + > > > +struct f2fs_sb_info { > > > + struct super_block *sb; /* Pointer to VFS super > > block */ > > > + int s_dirty; > > > > Is s_dirty actually used? I can see it only set a

RE: [PATCH 03/16] f2fs: add superblock and major in-memory structures

2012-10-08 Thread Chul Lee
Dear David Sterba, David Sterba wrote: > On Fri, Oct 05, 2012 at 08:57:46PM +0900, ? wrote: > > +struct f2fs_nm_info { > > + block_t nat_blkaddr;/* base disk address of NAT */ > > + unsigned int nat_segs; /* the number of nat segments */ > > + unsigned int nat_b

Re: [PATCH 03/16] f2fs: add superblock and major in-memory structures

2012-10-06 Thread David Sterba
On Fri, Oct 05, 2012 at 08:57:46PM +0900, ? wrote: > +struct f2fs_nm_info { > + block_t nat_blkaddr;/* base disk address of NAT */ > + unsigned int nat_segs; /* the number of nat segments */ > + unsigned int nat_blocks;/* the number of nat blocks of