xfs: Pull up trans roll from xfs_attr3_leaf_setflag
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>
This commit is contained in:
		
							parent
							
								
									6cc5b5f898
								
							
						
					
					
						commit
						0949d317ae
					
				| @ -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; | ||||
|  | ||||
| @ -2833,10 +2833,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; | ||||
| } | ||||
| 
 | ||||
| /*
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user