]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xfs: switch remaining xfs_trans_dup users to xfs_trans_roll
authorChristoph Hellwig <hch@lst.de>
Thu, 4 Jun 2015 03:47:29 +0000 (13:47 +1000)
committerDan Duval <dan.duval@oracle.com>
Wed, 7 Dec 2016 15:08:50 +0000 (10:08 -0500)
commit6f69bc54c77efa0d2c0fa47e879a0bfa13c0de78
treed43a08bcaa74533f98874884e0f4a273906835a0
parentc5a8a9bdb9015eea69559450f2e4623046740afa
xfs: switch remaining xfs_trans_dup users to xfs_trans_roll

Orabug: 22913653

We have three remaining callers of xfs_trans_dup:

 - xfs_itruncate_extents which open codes xfs_trans_roll
 - xfs_bmap_finish doesn't have an xfs_inode argument and thus leaves
   attaching them to it's callers, but otherwise is identical to
   xfs_trans_roll
 - xfs_dir_ialloc looks at the log reservations in the old xfs_trans
   structure instead of the log reservation parameters, but otherwise
   is identical to xfs_trans_roll.

By allowing a NULL xfs_inode argument to xfs_trans_roll we can switch
these three remaining users over to xfs_trans_roll and mark xfs_trans_dup
static.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
(cherry picked from commit 2e6db6c4c1f71823472651f162f0b355f5b7951e)
Signed-off-by: Dan Duval <dan.duval@oracle.com>
fs/xfs/xfs_bmap_util.c
fs/xfs/xfs_inode.c
fs/xfs/xfs_trans.c
fs/xfs/xfs_trans.h