]> 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>
Tue, 21 May 2013 19:22:51 +0000 (14:22 -0500)
commit90253cf142469a40f89f989904abf0a1e500e1a6
treeaae4b5c5502ac636aa57337716b2258d1807ede6
parentf648167f3ac79018c210112508c732ea9bf67c7b
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>
fs/xfs/xfs_attr_remote.c