coding style clean up for lustre/osc/osc_dev.c
cover coding style clean up for lustre/osc/osc_dev.c
Patches clean up coding style issue of the file:linux-next/drivers/staging/lustre/lustre/osc/osc_dev.c
Honggang Li (2):
lustre/osc/osc_dev.c remove space between sizeof and open parenthesis lustre/osc/osc_dev.c add a blank line after declarations
drivers/staging/lustre/lustre/osc/osc_dev.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-)
Signature · 1 line
1.8.3.1
PATCH 1/2 lustre/osc/osc_dev.c remove space between sizeof and open parenthesis
Signed-off-by Honggang Li <[email protected]>
--- drivers/staging/lustre/lustre/osc/osc_dev.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)
drivers/staging/lustre/lustre/osc/osc_dev.c +6 -6
@@ -61,32 +61,32 @@ struct lu_kmem_descr osc_caches[] = { { .ckd_cache = &osc_lock_kmem, .ckd_name = "osc_lock_kmem", - .ckd_size =sizeof (struct osc_lock ) + .ckd_size =sizeof (struct osc_lock ) }, { .ckd_cache = &osc_object_kmem, .ckd_name = "osc_object_kmem", - .ckd_size =sizeof (struct osc_object ) + .ckd_size =sizeof (struct osc_object ) }, { .ckd_cache = &osc_thread_kmem, .ckd_name = "osc_thread_kmem", - .ckd_size =sizeof (struct osc_thread_info ) + .ckd_size =sizeof (struct osc_thread_info ) }, { .ckd_cache = &osc_session_kmem, .ckd_name = "osc_session_kmem", - .ckd_size =sizeof (struct osc_session ) + .ckd_size =sizeof (struct osc_session ) }, { .ckd_cache = &osc_req_kmem, .ckd_name = "osc_req_kmem", - .ckd_size =sizeof (struct osc_req ) + .ckd_size =sizeof (struct osc_req ) }, { .ckd_cache = &osc_extent_kmem, .ckd_name = "osc_extent_kmem", - .ckd_size =sizeof (struct osc_extent ) + .ckd_size =sizeof (struct osc_extent ) }, { .ckd_cache = &osc_quota_kmem,
Signature · 1 line
1.8.3.1
PATCH 2/2 lustre/osc/osc_dev.c add a blank line after declarations
Signed-off-by Honggang Li <[email protected]>
--- drivers/staging/lustre/lustre/osc/osc_dev.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/staging/lustre/lustre/osc/osc_dev.c +2 -0
@@ -132,6 +132,7 @@ static void osc_key_fini(const struct lu_context *ctx, struct lu_context_key *key, void *data) { struct osc_thread_info *info = data; +OBD_SLAB_FREE_PTR (info, osc_thread_kmem); }
@@ -156,6 +157,7 @@ static void osc_session_fini(const struct lu_context *ctx, struct lu_context_key *key, void *data) { struct osc_session *info = data; +OBD_SLAB_FREE_PTR (info, osc_session_kmem); }
Signature · 1 line
1.8.3.1