]> git.neil.brown.name Git - LaFS.git/commit
Hold ref on inode during orphan handling.
authorNeilBrown <neilb@suse.de>
Sun, 1 Aug 2010 02:43:04 +0000 (12:43 +1000)
committerNeilBrown <neilb@suse.de>
Mon, 9 Aug 2010 02:01:42 +0000 (12:01 +1000)
commit4fbacb536346bf0cd9c03ce51d4a274fc2753642
tree7c76043f03caff77a5d881abce7d9d8488b9cf44
parent8c394fff184ed83cbc4ac3c48c99440fdc7d4b02
Hold ref on inode during orphan handling.

Orphan handling will shortly drop references to the inode controlling
the orphan block.  As run_orphans needs to drop the mutex at the end
it needs to hold another reference too.

If I_Deleting is set, then the db effectively owns a reference,
so no further igrab is needed, nor will it work.

Signed-off-by: NeilBrown <neilb@suse.de>
orphan.c