Remove an unnecessary line in allocate_data_block.
PATCH 1/1 Remove an unnecessary line in allocate_data_block.
Hi. There was an unnecessary line in function, allocate_data_block. It is already done in
refresh_sit_entry(sbi, old_blkaddr, *new_blkaddr);
Thanks.
--- fs/f2fs/segment.c | 1 - 1 file changed, 1 deletion(-)
fs/f2fs/segment.c +0 -1
@@ -1001,7 +1001,6 @@ void allocate_data_block(struct f2fs_sb_info *sbi, struct page *page,* since SSR needs latest valid block information. */ refresh_sit_entry (sbi, old_blkaddr, *new_blkaddr); -locate_dirty_segment (sbi, old_cursegno);mutex_unlock (&sit_i->sentry_lock);
Signature · 7 lines
1.9.1 ------------------------------------------------------------------------------ Want fast and easy access to all the code in your enterprise? Index and search up to 200,000 lines of code with a free copy of Black Duck Code Sight - the same software that powers the world's largest code search on Ohloh, the Black Duck Open Hub! Try it now. http://p.sf.net/sfu/bds
Hi Dongho,
Quoted 11 lines
-----Original Message-----
From: Dongho Sim [mailto:[email protected]]
Sent: Monday, July 28, 2014 7:03 AM
To: [email protected]; [email protected]
Subject: [f2fs-dev] [PATCH] Remove an unnecessary line inallocate_data_block.Hi. There was an unnecessary line in function,
allocate_data_block. It is already done in
refresh_sit_entry(sbi, old_blkaddr, *new_blkaddr);Thanks.
Agreed,
How about removing old_cursegno too as it's no longer used in allocate_data_block?
Thanks,
Yu
Quoted 22 lines
Signed-off-by Dongho Sim <[email protected]>--- fs/f2fs/segment.c | 1 - 1 file changed, 1 deletion(-)fs/f2fs/segment.c +0
-2@@ -1001,7 +1001,6 @@ void allocate_data_block(struct f2fs_sb_info *sbi, struct page *page,* since SSR needs latest valid block information. */ refresh_sit_entry (sbi, old_blkaddr, *new_blkaddr); -locate_dirty_segment (sbi, old_cursegno);mutex_unlock (&sit_i->sentry_lock); --1.9.1
------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
Quoted 8 lines
search up to 200,000 lines of code with a free copy of Black Duck Code Sight - the same software that powers the world's largest code search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
Linux-f2fs-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
------------------------------------------------------------------------------
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls. Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk