f2fs: use meta_inode cache to improve roll-forward speed
Hello Jaegeuk Kim,
The patch 17ef549eef6e: "f2fs: use meta_inode cache to improve roll-forward speed" from Sep 11, 2014, leads to the following static checker warning:
fs/f2fs/recovery.c:180 find_fsync_dnodes() warn: 'page' isn't an ERR_PTR
fs/f2fs/recovery.c
178
179 page = get_meta_page(sbi, blkaddr);
180 if (IS_ERR(page))
^^^^^^^^^^^
Is get_meta_page() supposed to return an ERR_PTR()? The comment says "We guarantee no failure on the returned page."
181 return PTR_ERR(page); 182
Also:fs/f2fs/recovery.c:446 recover_data() warn: 'page' isn't an ERR_PTR
regards,
dan carpenter
------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
Hi Dan,
I fixed this.
Thank you very much.
Quoted 17 lines · Dan Carpenter
Hello Jaegeuk Kim,
The patch
17ef549eef6e: "f2fs: usemeta_inodecache to improve roll-forward speed" from Sep 11, 2014, leads to the following static checker warning:fs/f2fs/recovery.c:180 find_fsync_dnodes() warn: 'page' isn't an ERR_PTR
fs/f2fs/recovery.c
178
179 page =get_meta_page(sbi, blkaddr);
180 if (IS_ERR(page))^^^^^^^^^^^Is
get_meta_page()supposed to return anERR_PTR()? The comment says "We guarantee no failure on the returned page."
Quoted 8 lines
181 return PTR_ERR(page); 182Also:
fs/f2fs/recovery.c:446recover_data()warn: 'page' isn't anERR_PTRregards,
dan carpenter
------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk