]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: remote attribute allocation may be contiguous
authorDave Chinner <dchinner@redhat.com>
Fri, 7 Jun 2013 12:24:54 +0000 (22:24 +1000)
committerBen Myers <bpm@sgi.com>
Tue, 6 Aug 2013 21:27:36 +0000 (16:27 -0500)
commiteaa60cd080f8a15c52d1f7af1e670bd696c63d7f
tree7fd338610605911be15153fb0e03f00ea4894075
parentbdf62025fac50980215f3bdb8cfd73ea0dbf5165
xfs: remote attribute allocation may be contiguous

When CRCs are enabled, there may be multiple allocations made if the
headers cause a length overflow. This, however, does not mean that
the number of headers required increases, as the second and
subsequent extents may be contiguous with the previous extent. Hence
when we map the extents to write the attribute data, we may end up
with less extents than allocations made. Hence the assertion that we
consume th enumber of headers we calculated in the allocation loop
is incorrect and needs to be removed.

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