]> git.neil.brown.name Git - LaFS.git/commit
Hold ref on inode while truncating.
authorNeilBrown <neilb@suse.de>
Sun, 1 Aug 2010 02:46:48 +0000 (12:46 +1000)
committerNeilBrown <neilb@suse.de>
Mon, 9 Aug 2010 02:01:42 +0000 (12:01 +1000)
commita196a317636dd09d9ef2b3bf3ed8fde6aa736fa6
tree1bb58ad35607d8bd164928059458a2cee3adbd1c
parent4fbacb536346bf0cd9c03ce51d4a274fc2753642
Hold ref on inode while truncating.

If I_Trunc is set and I_Deleting is not, then we hold a
reference to the inode and must drop it when clearing I_Trunc.

This ensure that delete_inode won't get called while truncate
is happening, and the inode won't otherwise disappear.

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