]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcca34207459de24daac93c80041ea8abc9826030
tree04277a4f1bae95d38ea775623db3aaac72d56f26
parent2c95c64231674e74474b12124e264ec375113e29
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