xfs: make sure to free the real-time inodes in the mount error path
authorChristoph Hellwig <hch@lst.de>
Wed, 4 Feb 2009 08:33:58 +0000 (09:33 +0100)
committerChristoph Hellwig <hch@brick.lst.de>
Wed, 4 Feb 2009 08:33:58 +0000 (09:33 +0100)
commitb93b6e434c046459cf3111c76dce46ba4abcb2b6
tree04277a4f1bae95d38ea775623db3aaac72d56f26
parentf9057e3da79d18fdbd9d6adbb183f032c614feeb
xfs: make sure to free the real-time inodes in the mount error path

When mount fails after allocating the real-time inodes we currently leak
them.  Add a new helper to free the real-time inodes which can be used by
both the mount and unmount path.

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