lkml.org 
[lkml]   [2015]   [Aug]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [f2fs-dev] [PATCH 2/2] f2fs: fix to release inode correctly
Hi Chao,

On Mon, Aug 24, 2015 at 09:54:23AM -0700, Jaegeuk Kim wrote:
> On Mon, Aug 24, 2015 at 05:40:45PM +0800, Chao Yu wrote:
> > In following call stack, if unfortunately we lose all chances to truncate
> > inode page in remove_inode_page, eventually we will add the nid allocated
> > previously into free nid cache, this nid is with NID_NEW status and with
> > NEW_ADDR in its blkaddr pointer:
> >
> > - f2fs_create
> > - f2fs_add_link
> > - __f2fs_add_link
> > - init_inode_metadata
> > - new_inode_page
> > - new_node_page
> > - set_node_addr(, NEW_ADDR)
> > - f2fs_init_acl failed
> > - remove_inode_page failed
> > - handle_failed_inode
> > - remove_inode_page failed
> > - iput
> > - f2fs_evict_inode
> > - remove_inode_page failed
> > - alloc_nid_failed cache a nid with valid blkaddr: NEW_ADDR

Unfortunately, this couldn't fix my bug case.
I'm still struggling to find out something tho.
Meanwhile, let's stay with both of the patches.

Thanks,


\
 
 \ /
  Last update: 2015-08-25 01:01    [W:0.150 / U:0.204 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site