]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: remote attribute allocation may be contiguous
authorDave Chinner <dchinner@redhat.com>
Tue, 21 May 2013 08:02:01 +0000 (18:02 +1000)
committerBen Myers <bpm@sgi.com>
Thu, 30 May 2013 22:25:39 +0000 (17:25 -0500)
commitd1db4416d39cebafbc2204d4ab5b051674b1be64
tree6e259ff91845db749a116d7280ad59e2f65c6434
parentbeb2dc763522c9e5013681ceff0c0c27dc40736d
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 the number 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>
(cherry picked from commit 90253cf142469a40f89f989904abf0a1e500e1a6)
fs/xfs/xfs_attr_remote.c