summaryrefslogtreecommitdiff
path: root/fs/xfs/libxfs/xfs_defer.h
diff options
context:
space:
mode:
authorDarrick J. Wong <darrick.wong@oracle.com>2016-08-03 11:15:38 +1000
committerDave Chinner <david@fromorbit.com>2016-08-03 11:15:38 +1000
commit3ab78df2a59a485f479d26852a060acfd8c4ecd7 (patch)
treebb2ebb0e9564d18e90b177ab91a8ce80dc7bb746 /fs/xfs/libxfs/xfs_defer.h
parent9749fee83f38fca8dbe67161a033db22e3c4a2dd (diff)
xfs: rework xfs_bmap_free callers to use xfs_defer_ops
Restructure everything that used xfs_bmap_free to use xfs_defer_ops instead. For now we'll just remove the old symbols and play some cpp magic to make it work; in the next patch we'll actually rename everything. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Brian Foster <bfoster@redhat.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/xfs/libxfs/xfs_defer.h')
-rw-r--r--fs/xfs/libxfs/xfs_defer.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/xfs/libxfs/xfs_defer.h b/fs/xfs/libxfs/xfs_defer.h
index b9b5a92ffa6c..8d2508640121 100644
--- a/fs/xfs/libxfs/xfs_defer.h
+++ b/fs/xfs/libxfs/xfs_defer.h
@@ -93,4 +93,11 @@ struct xfs_defer_op_type {
void xfs_defer_init_op_type(const struct xfs_defer_op_type *type);
+/* XXX: compatibility shims, will go away in the next patch */
+#define xfs_bmap_finish xfs_defer_finish
+#define xfs_bmap_cancel xfs_defer_cancel
+#define xfs_bmap_init xfs_defer_init
+#define xfs_bmap_free xfs_defer_ops
+typedef struct xfs_defer_ops xfs_bmap_free_t;
+
#endif /* __XFS_DEFER_H__ */