xfs: refactor xfs_trans_reserve() interface
[deliverable/linux.git] / fs / xfs / xfs_attr_inactive.c
index ace95e791311f09ddf9e49e814161c22169dbaf6..bb24b07cbedb3d46a6286e8e169a734ad9fa3baa 100644 (file)
@@ -412,9 +412,8 @@ xfs_attr_inactive(xfs_inode_t *dp)
         * the log.
         */
        trans = xfs_trans_alloc(mp, XFS_TRANS_ATTRINVAL);
-       if ((error = xfs_trans_reserve(trans, 0, XFS_ATTRINVAL_LOG_RES(mp), 0,
-                                     XFS_TRANS_PERM_LOG_RES,
-                                     XFS_ATTRINVAL_LOG_COUNT))) {
+       error = xfs_trans_reserve(trans, &M_RES(mp)->tr_attrinval, 0, 0);
+       if (error) {
                xfs_trans_cancel(trans, 0);
                return(error);
        }
This page took 0.024013 seconds and 5 git commands to generate.