]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs: Pull up trans roll from xfs_attr3_leaf_setflag
authorAllison Collins <allison.henderson@oracle.com>
Tue, 15 Sep 2020 19:59:37 +0000 (15:59 -0400)
committerEric Sandeen <sandeen@sandeen.net>
Tue, 15 Sep 2020 19:59:37 +0000 (15:59 -0400)
Source kernel commit: 0949d317aee051fcb7ad9c8c7ec5d60b5cc412eb

New delayed allocation routines cannot be handling transactions so
pull them up into the calling functions

Signed-off-by: Allison Collins <allison.henderson@oracle.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Chandan Rajendra <chandanrlinux@gmail.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Acked-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/xfs_attr.c
libxfs/xfs_attr_leaf.c

index e662b966cbb8d51ea326ebdc78a9522a5ce88601..b3d556fb184b444eff3806b4a50d9e9d024c928e 100644 (file)
@@ -1126,6 +1126,11 @@ xfs_attr_node_removename(
                error = xfs_attr3_leaf_setflag(args);
                if (error)
                        goto out;
+
+               error = xfs_trans_roll_inode(&args->trans, args->dp);
+               if (error)
+                       goto out;
+
                error = xfs_attr_rmtval_remove(args);
                if (error)
                        goto out;
index 1783dd702ea6a5acba5e4ad5245c18892892035a..082a2f5e7c601cb3a7afe38b4cd4335feb294aaf 100644 (file)
@@ -2830,10 +2830,7 @@ xfs_attr3_leaf_setflag(
                         XFS_DA_LOGRANGE(leaf, name_rmt, sizeof(*name_rmt)));
        }
 
-       /*
-        * Commit the flag value change and start the next trans in series.
-        */
-       return xfs_trans_roll_inode(&args->trans, args->dp);
+       return 0;
 }
 
 /*