* [PATCH] Staging: lustre: lcommon_misc: Correct block comments
@ 2015-10-18 16:41 Shivani Bhardwaj
2015-10-18 16:58 ` [Outreachy kernel] " Daniel Baluta
0 siblings, 1 reply; 3+ messages in thread
From: Shivani Bhardwaj @ 2015-10-18 16:41 UTC (permalink / raw)
To: outreachy-kernel
Alignment of block comments should be correct.
Fix checkpatch WARNING: Block comments use a trailing */ on a separate
line
Signed-off-by: Shivani Bhardwaj <shivanib134@gmail.com>
---
drivers/staging/lustre/lustre/lclient/lcommon_misc.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/drivers/staging/lustre/lustre/lclient/lcommon_misc.c b/drivers/staging/lustre/lustre/lclient/lcommon_misc.c
index 8389a0e..d80bcedd 100644
--- a/drivers/staging/lustre/lustre/lclient/lcommon_misc.c
+++ b/drivers/staging/lustre/lustre/lclient/lcommon_misc.c
@@ -48,7 +48,8 @@
/* Initialize the default and maximum LOV EA and cookie sizes. This allows
* us to make MDS RPCs with large enough reply buffers to hold the
* maximum-sized (= maximum striped) EA and cookie without having to
- * calculate this (via a call into the LOV + OSCs) each time we make an RPC. */
+ * calculate this (via a call into the LOV + OSCs) each time we make an RPC.
+ */
int cl_init_ea_size(struct obd_export *md_exp, struct obd_export *dt_exp)
{
struct lov_stripe_md lsm = { .lsm_magic = LOV_MAGIC_V3 };
@@ -74,7 +75,8 @@ int cl_init_ea_size(struct obd_export *md_exp, struct obd_export *dt_exp)
cookiesize = stripes * sizeof(struct llog_cookie);
/* default cookiesize is 0 because from 2.4 server doesn't send
- * llog cookies to client. */
+ * llog cookies to client.
+ */
CDEBUG(D_HA,
"updating def/max_easize: %d/%d def/max_cookiesize: 0/%d\n",
def_easize, easize, cookiesize);
--
2.1.0
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [Outreachy kernel] [PATCH] Staging: lustre: lcommon_misc: Correct block comments
2015-10-18 16:41 [PATCH] Staging: lustre: lcommon_misc: Correct block comments Shivani Bhardwaj
@ 2015-10-18 16:58 ` Daniel Baluta
2015-10-18 17:00 ` Shivani Bhardwaj
0 siblings, 1 reply; 3+ messages in thread
From: Daniel Baluta @ 2015-10-18 16:58 UTC (permalink / raw)
To: Shivani Bhardwaj; +Cc: outreachy-kernel
On Sun, Oct 18, 2015 at 7:41 PM, Shivani Bhardwaj <shivanib134@gmail.com> wrote:
> Alignment of block comments should be correct.
> Fix checkpatch WARNING: Block comments use a trailing */ on a separate
> line
>
> Signed-off-by: Shivani Bhardwaj <shivanib134@gmail.com>
> ---
> drivers/staging/lustre/lustre/lclient/lcommon_misc.c | 6 ++++--
> 1 file changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/staging/lustre/lustre/lclient/lcommon_misc.c b/drivers/staging/lustre/lustre/lclient/lcommon_misc.c
> index 8389a0e..d80bcedd 100644
> --- a/drivers/staging/lustre/lustre/lclient/lcommon_misc.c
> +++ b/drivers/staging/lustre/lustre/lclient/lcommon_misc.c
> @@ -48,7 +48,8 @@
> /* Initialize the default and maximum LOV EA and cookie sizes. This allows
> * us to make MDS RPCs with large enough reply buffers to hold the
> * maximum-sized (= maximum striped) EA and cookie without having to
> - * calculate this (via a call into the LOV + OSCs) each time we make an RPC. */
> + * calculate this (via a call into the LOV + OSCs) each time we make an RPC.
> + */
> int cl_init_ea_size(struct obd_export *md_exp, struct obd_export *dt_exp)
> {
> struct lov_stripe_md lsm = { .lsm_magic = LOV_MAGIC_V3 };
> @@ -74,7 +75,8 @@ int cl_init_ea_size(struct obd_export *md_exp, struct obd_export *dt_exp)
> cookiesize = stripes * sizeof(struct llog_cookie);
>
> /* default cookiesize is 0 because from 2.4 server doesn't send
> - * llog cookies to client. */
> + * llog cookies to client.
> + */
> CDEBUG(D_HA,
> "updating def/max_easize: %d/%d def/max_cookiesize: 0/%d\n",
> def_easize, easize, cookiesize);
While at it please also add an empty comment line at the begining:
/*
* first text line
* ..
*/
Like here: http://lxr.free-electrons.com/source/Documentation/CodingStyle#L467
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [Outreachy kernel] [PATCH] Staging: lustre: lcommon_misc: Correct block comments
2015-10-18 16:58 ` [Outreachy kernel] " Daniel Baluta
@ 2015-10-18 17:00 ` Shivani Bhardwaj
0 siblings, 0 replies; 3+ messages in thread
From: Shivani Bhardwaj @ 2015-10-18 17:00 UTC (permalink / raw)
To: Daniel Baluta; +Cc: outreachy-kernel
On Sun, Oct 18, 2015 at 10:28 PM, Daniel Baluta <daniel.baluta@gmail.com> wrote:
> On Sun, Oct 18, 2015 at 7:41 PM, Shivani Bhardwaj <shivanib134@gmail.com> wrote:
>> Alignment of block comments should be correct.
>> Fix checkpatch WARNING: Block comments use a trailing */ on a separate
>> line
>>
>> Signed-off-by: Shivani Bhardwaj <shivanib134@gmail.com>
>> ---
>> drivers/staging/lustre/lustre/lclient/lcommon_misc.c | 6 ++++--
>> 1 file changed, 4 insertions(+), 2 deletions(-)
>>
>> diff --git a/drivers/staging/lustre/lustre/lclient/lcommon_misc.c b/drivers/staging/lustre/lustre/lclient/lcommon_misc.c
>> index 8389a0e..d80bcedd 100644
>> --- a/drivers/staging/lustre/lustre/lclient/lcommon_misc.c
>> +++ b/drivers/staging/lustre/lustre/lclient/lcommon_misc.c
>> @@ -48,7 +48,8 @@
>> /* Initialize the default and maximum LOV EA and cookie sizes. This allows
>> * us to make MDS RPCs with large enough reply buffers to hold the
>> * maximum-sized (= maximum striped) EA and cookie without having to
>> - * calculate this (via a call into the LOV + OSCs) each time we make an RPC. */
>> + * calculate this (via a call into the LOV + OSCs) each time we make an RPC.
>> + */
>> int cl_init_ea_size(struct obd_export *md_exp, struct obd_export *dt_exp)
>> {
>> struct lov_stripe_md lsm = { .lsm_magic = LOV_MAGIC_V3 };
>> @@ -74,7 +75,8 @@ int cl_init_ea_size(struct obd_export *md_exp, struct obd_export *dt_exp)
>> cookiesize = stripes * sizeof(struct llog_cookie);
>>
>> /* default cookiesize is 0 because from 2.4 server doesn't send
>> - * llog cookies to client. */
>> + * llog cookies to client.
>> + */
>> CDEBUG(D_HA,
>> "updating def/max_easize: %d/%d def/max_cookiesize: 0/%d\n",
>> def_easize, easize, cookiesize);
>
> While at it please also add an empty comment line at the begining:
>
> /*
> * first text line
> * ..
> */
>
> Like here: http://lxr.free-electrons.com/source/Documentation/CodingStyle#L467
All right. Thank you.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-10-18 17:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-18 16:41 [PATCH] Staging: lustre: lcommon_misc: Correct block comments Shivani Bhardwaj
2015-10-18 16:58 ` [Outreachy kernel] " Daniel Baluta
2015-10-18 17:00 ` Shivani Bhardwaj
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.