xfs: fix locking of the rt bitmap/summary inodes
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 3 Aug 2016 01:00:42 +0000 (11:00 +1000)
committerDave Chinner <david@fromorbit.com>
Wed, 3 Aug 2016 01:00:42 +0000 (11:00 +1000)
commitf4a0660de34451e30f0bb8b65946b79c8bd375ca
treed0d43540b424754fb8bcb428961f9955fa06c67e
parent3dadf901ddc0a1275b622b1a170557bd0d136862
xfs: fix locking of the rt bitmap/summary inodes

When we're deleting realtime extents, we need to lock the summary
inode in case we need to update the summary info to prevent an assert
on the rsumip inode lock on a debug kernel.  While we're at it, fix
the locking annotations so that we avoid triggering lockdep warnings.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/libxfs/xfs_bmap.c
fs/xfs/xfs_bmap_util.c