All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drivers/staging: lustre: Avoiding multiple line dereference
@ 2017-04-04  9:29 Pushkar Jambhlekar
  2017-04-08 10:45   ` [lustre-devel] " Greg Kroah-Hartman
  0 siblings, 1 reply; 3+ messages in thread
From: Pushkar Jambhlekar @ 2017-04-04  9:29 UTC (permalink / raw)
  To: Oleg Drokin, Andreas Dilger, James Simmons, Greg Kroah-Hartman,
	John L. Hammond, Al Viro, Lai Siyao, Pushkar Jambhlekar,
	James Nunez, Andrew Perepechko, wang di, Bob Glossman,
	Andreas Gruenbacher, Jinshan Xiong, Bobi Jam, Kirill A. Shutemov,
	Henri Doreau, Prakash Surya, Emoly Liu, Dmitry Eremin,
	Johann Lombardi
  Cc: lustre-devel, devel, linux-kernel

Making references in single line

Signed-off-by: Pushkar Jambhlekar <pushkar.iit@gmail.com>
---
 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(-)

diff --git a/drivers/staging/lustre/lustre/ldlm/ldlm_request.c b/drivers/staging/lustre/lustre/ldlm/ldlm_request.c
index 84eeaa5..3171d48 100644
--- a/drivers/staging/lustre/lustre/ldlm/ldlm_request.c
+++ b/drivers/staging/lustre/lustre/ldlm/ldlm_request.c
@@ -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) {
diff --git a/drivers/staging/lustre/lustre/llite/llite_lib.c b/drivers/staging/lustre/lustre/llite/llite_lib.c
index 7b80040..eb84dc5 100644
--- a/drivers/staging/lustre/lustre/llite/llite_lib.c
+++ b/drivers/staging/lustre/lustre/llite/llite_lib.c
@@ -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 */
diff --git a/drivers/staging/lustre/lustre/mgc/mgc_request.c b/drivers/staging/lustre/lustre/mgc/mgc_request.c
index 6a76605..88294a4 100644
--- a/drivers/staging/lustre/lustre/mgc/mgc_request.c
+++ b/drivers/staging/lustre/lustre/mgc/mgc_request.c
@@ -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;
diff --git a/drivers/staging/lustre/lustre/ptlrpc/import.c b/drivers/staging/lustre/lustre/ptlrpc/import.c
index 93e172f..452bb9e 100644
--- a/drivers/staging/lustre/lustre/ptlrpc/import.c
+++ b/drivers/staging/lustre/lustre/ptlrpc/import.c
@@ -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);
 		}
diff --git a/drivers/staging/lustre/lustre/ptlrpc/layout.c b/drivers/staging/lustre/lustre/ptlrpc/layout.c
index 356d735..1e34b55 100644
--- a/drivers/staging/lustre/lustre/ptlrpc/layout.c
+++ b/drivers/staging/lustre/lustre/ptlrpc/layout.c
@@ -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;
 }
 
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] drivers/staging: lustre: Avoiding multiple line dereference
  2017-04-04  9:29 [PATCH] drivers/staging: lustre: Avoiding multiple line dereference Pushkar Jambhlekar
@ 2017-04-08 10:45   ` Greg Kroah-Hartman
  0 siblings, 0 replies; 3+ messages in thread
From: Greg Kroah-Hartman @ 2017-04-08 10:45 UTC (permalink / raw)
  To: Pushkar Jambhlekar
  Cc: Oleg Drokin, Andreas Dilger, James Simmons, John L. Hammond,
	Al Viro, Lai Siyao, James Nunez, Andrew Perepechko, wang di,
	Bob Glossman, Andreas Gruenbacher, Jinshan Xiong, Bobi Jam,
	Kirill A. Shutemov, Henri Doreau, Prakash Surya, Emoly Liu,
	Dmitry Eremin, Johann Lombardi, devel, linux-kernel,
	lustre-devel

On Tue, Apr 04, 2017 at 02:59:30PM +0530, Pushkar Jambhlekar wrote:
> 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [lustre-devel] [PATCH] drivers/staging: lustre: Avoiding multiple line dereference
@ 2017-04-08 10:45   ` Greg Kroah-Hartman
  0 siblings, 0 replies; 3+ messages in thread
From: Greg Kroah-Hartman @ 2017-04-08 10:45 UTC (permalink / raw)
  To: Pushkar Jambhlekar
  Cc: Oleg Drokin, Andreas Dilger, James Simmons, John L. Hammond,
	Al Viro, Lai Siyao, James Nunez, Andrew Perepechko, wang di,
	Bob Glossman, Andreas Gruenbacher, Jinshan Xiong, Bobi Jam,
	Kirill A. Shutemov, Henri Doreau, Prakash Surya, Emoly Liu,
	Dmitry Eremin, Johann Lombardi, devel, linux-kernel,
	lustre-devel

On Tue, Apr 04, 2017 at 02:59:30PM +0530, Pushkar Jambhlekar wrote:
> 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-04-08 10:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-04  9:29 [PATCH] drivers/staging: lustre: Avoiding multiple line dereference Pushkar Jambhlekar
2017-04-08 10:45 ` Greg Kroah-Hartman
2017-04-08 10:45   ` [lustre-devel] " Greg Kroah-Hartman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.