xfs: remove an extent from the rmap btree
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 3 Aug 2016 01:45:12 +0000 (11:45 +1000)
committerDave Chinner <david@fromorbit.com>
Wed, 3 Aug 2016 01:45:12 +0000 (11:45 +1000)
commitf922cd90b82c5e78a860f194728d4dadc8575106
tree6b07a1e06c9435ecb87d5e1de70b746187cd3a59
parent0a1b0b3855cf74bb11243076b00178a0f1a0320e
xfs: remove an extent from the rmap btree

Originally-From: Dave Chinner <dchinner@redhat.com>

Now that we have records in the rmap btree, we need to remove them
when extents are freed. This needs to find the relevant record in
the btree and remove/trim/split it accordingly.

[darrick.wong@oracle.com: make rmap routines handle the enlarged keyspace]
[dchinner: remove remaining unused debug printks]
[darrick: fix a bug when growfs in an AG with an rmap ending at EOFS]

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/libxfs/xfs_rmap.c