]> Pileus Git - ~andy/linux/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)
commit9531e2de6b7f04bd734b4bbc1e16a6955121615a
tree6e259ff91845db749a116d7280ad59e2f65c6434
parente400d27d1690d609f203f2d7d8efebc98cbc3089
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