xfs: factor out attr fork reset handling
commite1486dea0bf4bc75a52a983281076f454a894b66
authorChristoph Hellwig <hch@lst.de>
Wed, 4 Feb 2009 08:36:00 +0000 (4 09:36 +0100)
committerChristoph Hellwig <hch@brick.lst.de>
Wed, 4 Feb 2009 08:36:00 +0000 (4 09:36 +0100)
tree53679519cd218cae7de7455af92d5005ef28d91a
parentc52e9fd8a9d3ac019680ffa315c1a0689d401ce3
xfs: factor out attr fork reset handling

We currently duplicate code to reset the attribute fork after the last
attribute has been deleted.  Factor this out into a small helper.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Felix Blyakher <felixb@sgi.com>
fs/xfs/xfs_attr_leaf.c