On 03/08, Fan Li wrote: > use a slightly simpler expression to calculate nat block with nid. > > Signed-off-by: Fan Li <[email protected]> > --- > fs/f2fs/node.h | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/fs/f2fs/node.h b/fs/f2fs/node.h > index 2f9603f..f9fb5b8 100644 > --- a/fs/f2fs/node.h > +++ b/fs/f2fs/node.h > @@ -200,13 +200,11 @@ static inline pgoff_t current_nat_addr(struct > f2fs_sb_info *sbi, nid_t start) > struct f2fs_nm_info *nm_i = NM_I(sbi); > pgoff_t block_off; > pgoff_t block_addr; > - int seg_off; > > block_off = NAT_BLOCK_OFFSET(start); > - seg_off = block_off >> sbi->log_blocks_per_seg; > > block_addr = (pgoff_t)(nm_i->nat_blkaddr + > - (seg_off << sbi->log_blocks_per_seg << 1) + > + (block_off << 1) -
NAK. This breaks the behavior. Thanks, > (block_off & (sbi->blocks_per_seg - 1))); > > if (f2fs_test_bit(block_off, nm_i->nat_bitmap)) > -- > 2.7.4 ------------------------------------------------------------------------------ Announcing the Oxford Dictionaries API! The API offers world-renowned dictionary content that is easy and intuitive to access. Sign up for an account today to start using our lexical data to power your apps and projects. Get started today and enter our developer competition. http://sdm.link/oxford _______________________________________________ Linux-f2fs-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
