]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs: remove OWN_AG rmap when allocating a block from the AGFL
authorDarrick J. Wong <darrick.wong@oracle.com>
Thu, 18 Aug 2016 23:30:57 +0000 (09:30 +1000)
committerDave Chinner <david@fromorbit.com>
Thu, 18 Aug 2016 23:30:57 +0000 (09:30 +1000)
commit59b863607a8da292564e64eb205d31e3050faeed
tree83eec2e469dab2705bfd57b3fef782b10ebd341a
parent8511b71a42eddde20aaf0aa05bfef635afe5af07
xfs: remove OWN_AG rmap when allocating a block from the AGFL

When we're really tight on space, xfs_alloc_ag_vextent_small() can
allocate a block from the AGFL and give it to the caller.  Since the
caller is never the AGFL-fixing method, we must remove the OWN_AG
reverse mapping because it will clash with whatever rmap the caller
wants to set up.  This bug was discovered by running generic/299
repeatedly.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
libxfs/xfs_alloc.c