drivers/staging: lustre: Avoiding multiple line dereference
PATCH 1/1 drivers/staging: lustre: Avoiding multiple line dereference
Making references in single line
Signed-off-by Pushkar Jambhlekar <[email protected]>
--- drivers/staging/lustre/lustre/ldlm/ldlm_request.c | 3 +-- drivers/staging/lustre/lustre/llite/llite_lib.c | 6 ++---- drivers/staging/lustre/lustre/mgc/mgc_request.c | 3 +-- drivers/staging/lustre/lustre/ptlrpc/import.c | 3 +-- drivers/staging/lustre/lustre/ptlrpc/layout.c | 3 +-- 5 files changed, 6 insertions(+), 12 deletions(-)
drivers/staging/lustre/lustre/ldlm/ldlm_request.c +1 -2
@@ -936,8 +936,7 @@ static int ldlm_cli_cancel_req(struct obd_export *exp, rc =ptlrpc_queue_wait (req);if (rc ==LUSTRE_ESTALE ) {CDEBUG (D_DLMTRACE ,"client/server (nid %s) out of sync -- not fatal\n" , -libcfs_nid2str (req->rq_import-> - imp_connection->c_peer.nid)); +libcfs_nid2str (req->rq_import->imp_connection->c_peer.nid)); rc =0 ; }else if (rc == -ETIMEDOUT &&/* check there was no reconnect*/ req->rq_import_generation == imp->imp_generation) {
drivers/staging/lustre/lustre/llite/llite_lib.c +2 -4
@@ -106,10 +106,8 @@ static struct ll_sb_info *ll_init_sbi(struct super_block *sb) sbi->ll_flags |=LL_SBI_LAZYSTATFS ;for (i =0 ; i <=LL_PROCESS_HIST_MAX ; i++) { -spin_lock_init (&sbi->ll_rw_extents_info.pp_extents[i]. - pp_r_hist.oh_lock); -spin_lock_init (&sbi->ll_rw_extents_info.pp_extents[i]. - pp_w_hist.oh_lock); +spin_lock_init (&sbi->ll_rw_extents_info.pp_extents[i].pp_r_hist.oh_lock); +spin_lock_init (&sbi->ll_rw_extents_info.pp_extents[i].pp_w_hist.oh_lock); }/* metadata statahead is enabled by default */
drivers/staging/lustre/lustre/mgc/mgc_request.c +1 -2
@@ -1768,8 +1768,7 @@ static int mgc_process_config(struct obd_device *obd, u32 len, void *buf) rc =mgc_process_log (obd, cld);if (rc ==0 && cld->cld_recover) { -if (OCD_HAS_FLAG (&obd->u.cli.cl_import-> - imp_connect_data,IMP_RECOV )) { +if (OCD_HAS_FLAG (&obd->u.cli.cl_import->imp_connect_data,IMP_RECOV )) { rc =mgc_process_log (obd, cld->cld_recover); }else {struct config_llog_data *cir;
drivers/staging/lustre/lustre/ptlrpc/import.c +1 -2
@@ -359,8 +359,7 @@ void ptlrpc_invalidate_import(struct obd_import *imp)CERROR ("%s: Unregistering RPCs found (%d). Network is sluggish? Waiting them to error out.\n" , cli_tgt, -atomic_read (&imp-> - imp_unregistering)); +atomic_read (&imp->imp_unregistering)); }spin_unlock (&imp->imp_lock); }
drivers/staging/lustre/lustre/ptlrpc/layout.c +1 -2
@@ -2102,8 +2102,7 @@ u32 req_capsule_fmt_size(__u32 magic, const struct req_format *fmt,for (; i < fmt->rf_fields[loc].nr; ++i)if (fmt->rf_fields[loc].d[i]->rmf_size !=-1 ) - size +=cfs_size_round (fmt->rf_fields[loc].d[i]-> - rmf_size); + size +=cfs_size_round (fmt->rf_fields[loc].d[i]->rmf_size);return size; }
Signature · 1 line
2.7.4
Greg Kroah-Hartman
maintainerQuoted 1 line · Pushkar Jambhlekar
Making references in single line
Why? Now the line is too long :(
Will this be a constant stream of patches, one making this change, and the other the original?
sorry,
greg k-h