From: Li Xi Date: Sun, 21 Jul 2013 01:21:00 +0000 (-0700) Subject: LU-3610 ptlrpc: Fix argument names of mgs_write_log_pool() X-Git-Tag: 2.4.93~52 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=d5377cc9c0f9d3470d112e25fe8e44a9098f2230 LU-3610 ptlrpc: Fix argument names of mgs_write_log_pool() The argument 'fsname' and 'poolname' of mgs_write_log_pool() is misplaced, which is confusing for code readers. This patch fixes the problem. What's more, 'lovname' is changed to 'tgtname', which might be more preferable for more upcoming callers of the function. Signed-off-by: Li Xi Change-Id: I08f11be7e2c99f623d22bec865f31476021c72bb Reviewed-on: http://review.whamcloud.com/7044 Tested-by: Hudson Tested-by: Maloo Reviewed-by: Bobbie Lind Reviewed-by: Mike Pershin Reviewed-by: Oleg Drokin --- diff --git a/lustre/mgs/mgs_llog.c b/lustre/mgs/mgs_llog.c index ebd4fbc..8e40891 100644 --- a/lustre/mgs/mgs_llog.c +++ b/lustre/mgs/mgs_llog.c @@ -3819,9 +3819,9 @@ out: static int mgs_write_log_pool(const struct lu_env *env, struct mgs_device *mgs, char *logname, - struct fs_db *fsdb, char *lovname, + struct fs_db *fsdb, char *tgtname, enum lcfg_command_type cmd, - char *poolname, char *fsname, + char *fsname, char *poolname, char *ostname, char *comment) { struct llog_handle *llh = NULL; @@ -3830,13 +3830,14 @@ static int mgs_write_log_pool(const struct lu_env *env, rc = record_start_log(env, mgs, &llh, logname); if (rc) return rc; - rc = record_marker(env, llh, fsdb, CM_START, lovname, comment); + rc = record_marker(env, llh, fsdb, CM_START, tgtname, comment); if (rc) goto out; - rc = record_base(env, llh, lovname, 0, cmd, poolname, fsname, ostname, 0); + rc = record_base(env, llh, tgtname, 0, cmd, + fsname, poolname, ostname, 0); if (rc) goto out; - rc = record_marker(env, llh, fsdb, CM_END, lovname, comment); + rc = record_marker(env, llh, fsdb, CM_END, tgtname, comment); out: record_end_log(env, &llh); return rc;