Skip to contentSkip to conversation

f2fs: use meta_inode cache to improve roll-forward speed

DISCUSSION Dan Carpenter 2 participants 2 messages Sep 15, 2014 – Sep 18, 2014

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw

Hi Dan,

I fixed this.

Thank you very much.

Quoted 17 lines · Dan Carpenter

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."

Quoted 8 lines
   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