diff options
author | Dave Chinner <dchinner@redhat.com> | 2022-04-21 02:36:48 +0200 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2022-04-21 02:36:48 +0200 |
commit | 14b07ecd5cd2545fcee3ff29119405f7cf2f59ad (patch) | |
tree | 1fa1af7e17561f3c6d0d2d9fad7d23a071160b2a /fs/xfs/xfs_log_cil.c | |
parent | xfs: xlog_write() no longer needs contwr state (diff) | |
download | linux-14b07ecd5cd2545fcee3ff29119405f7cf2f59ad.tar.xz linux-14b07ecd5cd2545fcee3ff29119405f7cf2f59ad.zip |
xfs: xlog_write() doesn't need optype anymore
So remove it from the interface and callers.
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Chandan Babu R <chandan.babu@oracle.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/xfs/xfs_log_cil.c')
-rw-r--r-- | fs/xfs/xfs_log_cil.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/xfs/xfs_log_cil.c b/fs/xfs/xfs_log_cil.c index dad2b527c3ff..9065250227f9 100644 --- a/fs/xfs/xfs_log_cil.c +++ b/fs/xfs/xfs_log_cil.c @@ -834,8 +834,7 @@ xlog_cil_write_chain( error = xlog_cil_order_write(ctx->cil, ctx->sequence, _START_RECORD); if (error) return error; - return xlog_write(log, ctx, chain, ctx->ticket, XLOG_START_TRANS, - chain_len); + return xlog_write(log, ctx, chain, ctx->ticket, chain_len); } /* @@ -874,8 +873,7 @@ xlog_cil_write_commit_record( /* account for space used by record data */ ctx->ticket->t_curr_res -= reg.i_len; - error = xlog_write(log, ctx, &vec, ctx->ticket, XLOG_COMMIT_TRANS, - reg.i_len); + error = xlog_write(log, ctx, &vec, ctx->ticket, reg.i_len); if (error) xlog_force_shutdown(log, SHUTDOWN_LOG_IO_ERROR); return error; |