* [PATCH 0/2 linux-next] coding style clean up for lustre/osc/osc_dev.c
@ 2014-06-12 7:13 Honggang Li
2014-06-12 7:13 ` [PATCH 1/2] lustre/osc/osc_dev.c remove space between sizeof and open parenthesis Honggang Li
0 siblings, 1 reply; 3+ messages in thread
From: Honggang Li @ 2014-06-12 7:13 UTC (permalink / raw)
To: gregkh, oleg.drokin, liang.zhen, a.terekhov, amk, devel
Cc: linux-kernel, enjoymindful
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(-)
--
1.8.3.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 1/2] lustre/osc/osc_dev.c remove space between sizeof and open parenthesis
2014-06-12 7:13 [PATCH 0/2 linux-next] coding style clean up for lustre/osc/osc_dev.c Honggang Li
@ 2014-06-12 7:13 ` Honggang Li
2014-06-12 7:13 ` [PATCH 2/2] lustre/osc/osc_dev.c add a blank line after declarations Honggang Li
0 siblings, 1 reply; 3+ messages in thread
From: Honggang Li @ 2014-06-12 7:13 UTC (permalink / raw)
To: gregkh, oleg.drokin, liang.zhen, a.terekhov, amk, devel
Cc: linux-kernel, enjoymindful
Signed-off-by: Honggang Li <enjoymindful@gmail.com>
---
drivers/staging/lustre/lustre/osc/osc_dev.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/drivers/staging/lustre/lustre/osc/osc_dev.c b/drivers/staging/lustre/lustre/osc/osc_dev.c
index a7c1ec0..5249e66 100644
--- a/drivers/staging/lustre/lustre/osc/osc_dev.c
+++ b/drivers/staging/lustre/lustre/osc/osc_dev.c
@@ -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,
--
1.8.3.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 2/2] lustre/osc/osc_dev.c add a blank line after declarations
2014-06-12 7:13 ` [PATCH 1/2] lustre/osc/osc_dev.c remove space between sizeof and open parenthesis Honggang Li
@ 2014-06-12 7:13 ` Honggang Li
0 siblings, 0 replies; 3+ messages in thread
From: Honggang Li @ 2014-06-12 7:13 UTC (permalink / raw)
To: gregkh, oleg.drokin, liang.zhen, a.terekhov, amk, devel
Cc: linux-kernel, enjoymindful
Signed-off-by: Honggang Li <enjoymindful@gmail.com>
---
drivers/staging/lustre/lustre/osc/osc_dev.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/staging/lustre/lustre/osc/osc_dev.c b/drivers/staging/lustre/lustre/osc/osc_dev.c
index 5249e66..048a5a5 100644
--- a/drivers/staging/lustre/lustre/osc/osc_dev.c
+++ b/drivers/staging/lustre/lustre/osc/osc_dev.c
@@ -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);
}
--
1.8.3.1
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-06-12 7:14 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-12 7:13 [PATCH 0/2 linux-next] coding style clean up for lustre/osc/osc_dev.c Honggang Li
2014-06-12 7:13 ` [PATCH 1/2] lustre/osc/osc_dev.c remove space between sizeof and open parenthesis Honggang Li
2014-06-12 7:13 ` [PATCH 2/2] lustre/osc/osc_dev.c add a blank line after declarations Honggang Li
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®