diff options
author | Jie Liu <jeff.liu@oracle.com> | 2014-02-07 15:26:07 +1100 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2014-02-07 15:26:07 +1100 |
commit | c6f9726444c8f8c7df24950864bf1a4cb2c61b3e (patch) | |
tree | 96ff5e5c909215e3b1c8e35a57e595b939027e39 /fs/xfs/xfs_log_cil.c | |
parent | 410b11a675dca827e893f07c3155691eda3b5887 (diff) | |
download | talos-obmc-linux-c6f9726444c8f8c7df24950864bf1a4cb2c61b3e.tar.gz talos-obmc-linux-c6f9726444c8f8c7df24950864bf1a4cb2c61b3e.zip |
xfs: convert xfs_log_commit_cil() to void
Convert xfs_log_commit_cil() to a void function since it return nothing
but 0 in any case, after that we can simplify the relative code logic
in xfs_trans_commit() accordingly.
Signed-off-by: Jie Liu <jeff.liu@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.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 | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/xfs/xfs_log_cil.c b/fs/xfs/xfs_log_cil.c index cdebd832c3db..f034cbd958e4 100644 --- a/fs/xfs/xfs_log_cil.c +++ b/fs/xfs/xfs_log_cil.c @@ -710,7 +710,7 @@ xlog_cil_empty( * background commit, returns without it held once background commits are * allowed again. */ -int +void xfs_log_commit_cil( struct xfs_mount *mp, struct xfs_trans *tp, @@ -756,7 +756,6 @@ xfs_log_commit_cil( xlog_cil_push_background(log); up_read(&cil->xc_ctx_lock); - return 0; } /* |