Skip to contentSkip to conversation

Staging: lustre: lustre: lov: lov_dev.c: Added missing blank line

PATCH Superseded Sakshi Vaid 2 participants 3 messages Sep 14, 2015 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Staging: lustre: lustre: lov: lov_dev.c: Added missing blank line

Added a missing blank line after declarations.

158: WARNING: Missing a blank line after declarations 183: WARNING: Missing a blank line after declarations

---
 drivers/staging/lustre/lustre/lclient/lcommon_cl.c | 4 ++--
 drivers/staging/lustre/lustre/lov/lov_dev.c        | 2 ++
 2 files changed, 4 insertions(+), 2 deletions(-)
drivers/staging/lustre/lustre/lclient/lcommon_cl.c +2 -2
index d31bf73..68cf1b7 100644
@@ -828,8 +828,8 @@ int ccc_prep_size(const struct lu_env *env, struct cl_object *obj,
 				 * --bug 17336 */
 				loff_t size = cl_isize_read(inode);
 				loff_t cur_index = start >> PAGE_CACHE_SHIFT;
-				loff_t size_index = ((size - 1)
-							>> PAGE_CACHE_SHIFT);
+				loff_t size_index =
+					((size - 1) >> PAGE_CACHE_SHIFT);
 
 				if ((size == 0 && cur_index != 0) ||
 				    size_index < cur_index)
drivers/staging/lustre/lustre/lov/lov_dev.c +2 -0
index 796a015..aadb8f2 100644
@@ -155,6 +155,7 @@ static void lov_key_fini(const struct lu_context *ctx,
 			 struct lu_context_key *key, void *data)
 {
 	struct lov_thread_info *info = data;
+
 	LINVRNT(list_empty(&info->lti_closure.clc_list));
 	OBD_SLAB_FREE_PTR(info, lov_thread_kmem);
 }
@@ -180,6 +181,7 @@ static void lov_session_key_fini(const struct lu_context *ctx,
 				 struct lu_context_key *key, void *data)
 {
 	struct lov_session *info = data;
+
 	OBD_SLAB_FREE_PTR(info, lov_session_kmem);
 }
 
Signature · 1 line
1.9.1
maintainer
#1 lore raw
Quoted 16 lines · Sakshi Vaid

Added a missing blank line after declarations.

158: WARNING: Missing a blank line after declarations 183: WARNING: Missing a blank line after declarations

---
 drivers/staging/lustre/lustre/lclient/lcommon_cl.c | 4 ++--
 drivers/staging/lustre/lustre/lov/lov_dev.c        | 2 ++
 2 files changed, 4 insertions(+), 2 deletions(-)
drivers/staging/lustre/lustre/lclient/lcommon_cl.c +0 -0
index d31bf73..68cf1b7 100644

drivers/staging/lustre/lustre/lclient/lcommon_cl.c int ccc_prep_size(const struct lu_env *env, struct cl_object *obj, · line 832

Quoted 7 lines
drivers/staging/lustre/lustre/lclient/lcommon_cl.c +2 -2
@@ -828,8 +828,8 @@ int ccc_prep_size(const struct lu_env *env, struct cl_object *obj,
 				 * --bug 17336 */
 				loff_t size = cl_isize_read(inode);
 				loff_t cur_index = start >> PAGE_CACHE_SHIFT;
-				loff_t size_index = ((size - 1)
-							>> PAGE_CACHE_SHIFT);
+				loff_t size_index =
+					((size - 1) >> PAGE_CACHE_SHIFT);

This change has nothing to do with what you said you were doing up at the top of the changelog :(

#2 lore raw

PATCH v2 1/1 Staging: lustre: lustre: lov: lov_dev.c: Added missing blank line

In reply to Sakshi Vaid

line 158: WARNING: Missing a blank line after declarations line 183: WARNING: Missing a blank line after declarations

Added a missing blank line after declartions.

---
 drivers/staging/lustre/lustre/lov/lov_dev.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/staging/lustre/lustre/lov/lov_dev.c +2 -0
index 796a015..aadb8f2 100644
@@ -155,6 +155,7 @@ static void lov_key_fini(const struct lu_context *ctx,
 			 struct lu_context_key *key, void *data)
 {
 	struct lov_thread_info *info = data;
+
 	LINVRNT(list_empty(&info->lti_closure.clc_list));
 	OBD_SLAB_FREE_PTR(info, lov_thread_kmem);
 }
@@ -180,6 +181,7 @@ static void lov_session_key_fini(const struct lu_context *ctx,
 				 struct lu_context_key *key, void *data)
 {
 	struct lov_session *info = data;
+
 	OBD_SLAB_FREE_PTR(info, lov_session_kmem);
 }
 
Signature · 1 line
1.9.1