]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - fs/xfs/xfs_trans_resv.h
xfs: refactor xfs_trans_reserve() interface
[mirror_ubuntu-bionic-kernel.git] / fs / xfs / xfs_trans_resv.h
index b8d5666990fe7c50ad6f7c9f35e00aea4e0545b4..140d3f367284b902a820b4606076f1b0da31d1f3 100644 (file)
@@ -65,6 +65,9 @@ struct xfs_trans_resv {
        struct xfs_trans_res    tr_fsyncts;     /* update timestamps on fsync */
 };
 
+/* shorthand way of accessing reservation structure */
+#define M_RES(mp)      (&(mp)->m_resv)
+
 /*
  * Per-extent log reservation for the allocation btree changes
  * involved in freeing or allocating an extent.