]> 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)
commit253e396fce253b666e6eb66847f431b87585c744
tree6e259ff91845db749a116d7280ad59e2f65c6434
parent67c24d215cbca782329a36a5fc5e6e1686ea9c1d
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