xfs: use xfs_ilock_attr_map_shared in xfs_attr_list_int
authorChristoph Hellwig <hch@infradead.org>
Fri, 6 Dec 2013 20:30:16 +0000 (12:30 -0800)
committerBen Myers <bpm@sgi.com>
Wed, 18 Dec 2013 22:08:04 +0000 (16:08 -0600)
commit568d994e9f53657cb6b3e9c95a83c130d36f83c9
treea4246ce0b646bc7859e04eaf601ab55e6cd23cdf
parent683cb941598d1d81283c940c100e0ce40f494105
xfs: use xfs_ilock_attr_map_shared in xfs_attr_list_int

We might not have read in the extent list at this point, so make sure we
take the ilock exclusively if we have to do so.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
fs/xfs/xfs_attr_list.c