]> git.neil.brown.name Git - LaFS.git/commit
Use igrab_fs to hod refcounts on the inodes of orphans.
authorNeilBrown <neilb@suse.de>
Sun, 10 Oct 2010 22:58:36 +0000 (09:58 +1100)
committerNeilBrown <neilb@suse.de>
Sun, 10 Oct 2010 23:33:56 +0000 (10:33 +1100)
commitb6a897fa60c5a8542af83ae6ec6c3c1132375e63
tree04515049023b04a0acca502dc52df8004b6d5b34
parent9a39783371f14fb16ce4339b0396c546c66e7e4b
Use igrab_fs to hod refcounts on the inodes of orphans.

We currently hold a refcount on the inodes of dir orphans.
We need the filesystem (super_block) as well.

Also, while we don't really need a similar refcount for inode orphans,
it doesn't hurt.

So simplify the tracking of whether we need to take such a refcount,
use iget_fs to grab the super_block as well, and also take a ref in
lafs_add_orphans, which was missing.

Signed-off-by: NeilBrown <neilb@suse.de>
dir.c
inode.c
lafs.h
orphan.c