]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: correctly map remote attr buffers during removal
authorDave Chinner <dchinner@redhat.com>
Tue, 21 May 2013 08:02:04 +0000 (18:02 +1000)
committerBen Myers <bpm@sgi.com>
Thu, 23 May 2013 22:49:28 +0000 (17:49 -0500)
commitdf56427a3ea8939cbf00e2540493153caa05ab42
tree26dcfd6ac5a1dbc121c278061f7b6cd7023e594f
parent7102427377a6cf728e771d1381e3b8d19d73131a
xfs: correctly map remote attr buffers during removal

If we don't map the buffers correctly (same as for get/set
operations) then the incore buffer lookup will fail. If a block
number matches but a length is wrong, then debug kernels will ASSERT
fail in _xfs_buf_find() due to the length mismatch. Ensure that we
map the buffers correctly by basing the length of the buffer on the
attribute data length rather than the remote block count.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Ben Myers <bpm@sgi.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
fs/xfs/xfs_attr_remote.c