]> git.neil.brown.name Git - LaFS.git/commit
While truncating, hold ref on superblock as well as inode.
authorNeilBrown <neilb@suse.de>
Sun, 10 Oct 2010 23:47:33 +0000 (10:47 +1100)
committerNeilBrown <neilb@suse.de>
Sun, 10 Oct 2010 23:47:33 +0000 (10:47 +1100)
commit6c2ff96dfb857fab2dde256afc383c8694a375ac
tree9552794739be94ffc1f3e4b140712190b3c01b98
parent7942d6f68c750e5cd6d133bf40ab57da88b84b8c
While truncating, hold ref on superblock as well as inode.

An unmount of a subsect filesystem could happen while still truncating
a file on the filesystem.  So hold a ref to the superblock so that it
doesn't go away.
When deleting, we cannot grab the inode, so we need to modify
lafs_iput_fs to not do an iput in that case.

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