xfs: remove xfs_bmapi_write() dfops param
Now that all callers use ->t_dfops, the xfs_bmapi_write() dfops parameter is no longer necessary. Remove it and access ->t_dfops directly. This patch does not change behavior. Signed-off-by: Brian Foster <bfoster@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
This commit is contained in:

committed by
Darrick J. Wong

parent
175d1a013e
commit
6e702a5dcb
@@ -259,7 +259,7 @@ xfs_iomap_write_direct(
|
||||
nimaps = 1;
|
||||
error = xfs_bmapi_write(tp, ip, offset_fsb, count_fsb,
|
||||
bmapi_flags, &firstfsb, resblks, imap,
|
||||
&nimaps, tp->t_dfops);
|
||||
&nimaps);
|
||||
if (error)
|
||||
goto out_bmap_cancel;
|
||||
|
||||
@@ -773,8 +773,7 @@ xfs_iomap_write_allocate(
|
||||
*/
|
||||
error = xfs_bmapi_write(tp, ip, map_start_fsb,
|
||||
count_fsb, flags, &first_block,
|
||||
nres, imap, &nimaps,
|
||||
tp->t_dfops);
|
||||
nres, imap, &nimaps);
|
||||
if (error)
|
||||
goto trans_cancel;
|
||||
|
||||
@@ -884,7 +883,7 @@ xfs_iomap_write_unwritten(
|
||||
nimaps = 1;
|
||||
error = xfs_bmapi_write(tp, ip, offset_fsb, count_fsb,
|
||||
XFS_BMAPI_CONVERT, &firstfsb, resblks,
|
||||
&imap, &nimaps, tp->t_dfops);
|
||||
&imap, &nimaps);
|
||||
if (error)
|
||||
goto error_on_bmapi_transaction;
|
||||
|
||||
|
Reference in New Issue
Block a user