xfs: fix per-ag reference counting in inode reclaim tree walking
authorDave Chinner <dchinner@redhat.com>
Mon, 8 Nov 2010 08:55:04 +0000 (08:55 +0000)
committerAlex Elder <aelder@sgi.com>
Wed, 10 Nov 2010 18:00:48 +0000 (12:00 -0600)
commitf83282a8ef799c0bdcb0c32971487087da1bc216
tree953c706c4c96a85348cc6e1404436411919b6d80
parent6762b938eac878a30a90e770ac655874c36bc642
xfs: fix per-ag reference counting in inode reclaim tree walking

The walk fails to decrement the per-ag reference count when the
non-blocking walk fails to obtain the per-ag reclaim lock, leading
to an assert failure on debug kernels when unmounting a filesystem.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Alex Elder <aelder@sgi.com>
fs/xfs/linux-2.6/xfs_sync.c
fs/xfs/xfs_mount.c