[PATCH] affs: implement ->drop_inode
authorChristoph Hellwig <hch@lst.de>
Tue, 20 Feb 2007 21:58:11 +0000 (13:58 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 21 Feb 2007 01:10:15 +0000 (17:10 -0800)
commit2be3c79046cf90d75d436708a4e0898c7a1f9d51
tree2a5727bb2a4132af009afc24e54661dd32d3efe2
parentc9ffec48487849bc277de662a6c29aad64653b99
[PATCH] affs: implement ->drop_inode

affs wants to truncate the inode when the last user goes away, currently it
does that through a potentially racy i_count check in ->put_inode.  But we
already have a method that's called just after the we dropped the last
reference, ->drop_inode.  This patch implements affs_drop_inode to take
advantage of this.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Cc: Roman Zippel <zippel@linux-m68k.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/affs/affs.h
fs/affs/inode.c
fs/affs/super.c