xfs: add an extent to the rmap btree
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 3 Aug 2016 01:44:21 +0000 (11:44 +1000)
committerDave Chinner <david@fromorbit.com>
Wed, 3 Aug 2016 01:44:21 +0000 (11:44 +1000)
commit0a1b0b3855cf74bb11243076b00178a0f1a0320e
tree947b7c576176915441e5fb7a07dd654bce3014d9
parentaa966d84aa487c4cb7f6fade1a35ca961652a395
xfs: add an extent to the rmap btree

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

Now all the btree, free space and transaction infrastructure is in
place, we can finally add the code to insert reverse mappings to the
rmap btree. Freeing will be done in a separate patch, so just the
addition operation can be focussed on here.

[darrick: handle owner offsets when adding rmaps]
[dchinner: remove remaining debug printk statements]
[darrick: move unwritten bit to rm_offset]

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>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/libxfs/xfs_rmap.c
fs/xfs/xfs_trace.h