Received: by 10.223.148.5 with SMTP id 5csp7695449wrq; Thu, 18 Jan 2018 08:27:39 -0800 (PST) X-Google-Smtp-Source: ACJfBosBVG8D855cIxG4WqeNMCr77P3Bn1K5wt9oKcMSXH8L/RD2fvXkD4TMynResDetv8hIyJG5 X-Received: by 10.98.160.25 with SMTP id r25mr27801447pfe.218.1516292859586; Thu, 18 Jan 2018 08:27:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516292859; cv=none; d=google.com; s=arc-20160816; b=z1GsBpwSqyDZX/P8Wg5kRde+NTLOwMglX45tdePc1A+UnBnSwx1W/gw15C+GWLa6Uy XmftNCk9JjljrmvhX1SuMoxnLAUa5YgcGhuj8eezI53R2NGdhVZqyWqXzcRC/VkQwDjd IJoJeRtXyzuCt4kA9q4pcZC1hakKRwsMNnU2Qo0J9neQ+0GZNO7IuByV8C2258rE24Mq kuMQfpWQvPblXc2kr6tTBIUl3xw2x8luusQ/LwP2dv+QRhU2kdZFfMYABl49bUim8SHV FFUZMY2jJOXfS1cGe8kFbSuRz88EhXAtBiVAnzAPrzmOyX22SGCGz0l4K8qns+omxzcj tSjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=n8/o+9c7uBy3llDSg4ecqDCOXwqEDUTR9sPbn52WZ0k=; b=pcti/eXG1bbjGl+xZgbXf29t0ybJblLJ/WPg/6ZI8SoGMwWSawzNiqPLFflYc0nAJe 8QWZhWPfx6jNqMSZR44NukfaMr0i3WjIo5dH9JCd0HHrDTRjqJd91GqxgG6Rs0e8GdQd 0oQjsiwVyxDLYgkAXDgWqzzXL1DU6p+RHVsn6+qz9bWstxSx80BvqqqxlY/tWrSt0ENT Rc/wPdXX15ZLGa2OiMybN7Prsze0J6LpqXwh6puNuH43jHA/my2+NNqZjPjFXIlAjstk /OBwC3fwW2rmbLekBUR1+paRwacDbRL9S28bbEWGZ/9qK2YZUUnY0hKKiINIBtE4K/Ob fhAg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a14si6623248pgd.49.2018.01.18.08.27.25; Thu, 18 Jan 2018 08:27:39 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932922AbeARPwA (ORCPT + 99 others); Thu, 18 Jan 2018 10:52:00 -0500 Received: from faui40.informatik.uni-erlangen.de ([131.188.34.40]:50643 "EHLO faui40.informatik.uni-erlangen.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932892AbeARPvu (ORCPT ); Thu, 18 Jan 2018 10:51:50 -0500 Received: from faui49man6 (faui49man6.informatik.uni-erlangen.de [131.188.42.194]) by faui40.informatik.uni-erlangen.de (Postfix) with SMTP id BFC9758C5E0; Thu, 18 Jan 2018 16:51:40 +0100 (CET) Received: by faui49man6 (sSMTP sendmail emulation); Thu, 18 Jan 2018 16:51:40 +0100 From: Fabian Huegel To: Oleg Drokin , Andreas Dilger , James Simmons , Lai Siyao , "John L . Hammond" , Greg Kroah-Hartman , devel@driverdev.osuosl.org, Ben Evans , NeilBrown Cc: lustre-devel@lists.lustre.org, linux-kernel@vger.kernel.org, linux-kernel@i4.cs.fau.de, Christoph Volkert , Fabian Huegel Subject: [PATCH 1/2] staging: lustre: Fix comment style Date: Thu, 18 Jan 2018 16:51:31 +0100 Message-Id: <1516290692-11642-2-git-send-email-fabian_huegel@web.de> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1516290692-11642-1-git-send-email-fabian_huegel@web.de> References: <20180115150259.GA17991@kroah.com> <1516290692-11642-1-git-send-email-fabian_huegel@web.de> X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED=-1, FREEMAIL_FROM=0.001 autolearn=disabled version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on faui40.informatik.uni-erlangen.de Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Most multi-line comments started on the first line, but the preferred linux kernel style is to start multi-line comments on the second line. Some comments became less readable after the change, so we changed them to single-line comments. Signed-off-by: Fabian Huegel Signed-off-by: Christoph Volkert --- drivers/staging/lustre/lustre/include/obd_class.h | 47 +++++++++++++---------- 1 file changed, 27 insertions(+), 20 deletions(-) diff --git a/drivers/staging/lustre/lustre/include/obd_class.h b/drivers/staging/lustre/lustre/include/obd_class.h index 199b593..f517a05 100644 --- a/drivers/staging/lustre/lustre/include/obd_class.h +++ b/drivers/staging/lustre/lustre/include/obd_class.h @@ -40,15 +40,12 @@ #include #include -#define OBD_STATFS_NODELAY 0x0001 /* requests should be send without delay - * and resends for avoid deadlocks - */ -#define OBD_STATFS_FROM_CACHE 0x0002 /* the statfs callback should not update - * obd_osfs_age - */ -#define OBD_STATFS_FOR_MDT0 0x0004 /* The statfs is only for retrieving - * information from MDT0. - */ +/* requests should be send without delay and resends for avoid deadlocks */ +#define OBD_STATFS_NODELAY 0x0001 +/* the statfs callback should not update obd_osfs_age */ +#define OBD_STATFS_FROM_CACHE 0x0002 +/* the statfs is only for retrieving information from MDT0 */ +#define OBD_STATFS_FOR_MDT0 0x0004 /* OBD Device Declarations */ extern struct obd_device *obd_devs[MAX_OBD_DEVICES]; @@ -137,7 +134,7 @@ int class_config_llog_handler(const struct lu_env *env, struct llog_rec_hdr *rec, void *data); int class_add_uuid(const char *uuid, __u64 nid); -/*obdecho*/ +/* obdecho */ void lprocfs_echo_init_vars(struct lprocfs_static_vars *lvars); #define CFG_F_START 0x01 /* Set when we start updating from a log */ @@ -182,7 +179,8 @@ struct config_llog_data { struct obd_export *cld_mgcexp; struct mutex cld_lock; int cld_type; - unsigned int cld_stopping:1, /* we were told to stop + unsigned int cld_stopping:1, /* + * we were told to stop * watching */ cld_lostlock:1; /* lock not requeued */ @@ -301,7 +299,8 @@ void obdo_to_ioobj(const struct obdo *oa, struct obd_ioobj *ioobj); #define MDP(dev, op) (dev)->obd_type->typ_md_ops->op #define CTXTP(ctxt, op) (ctxt)->loc_logops->lop_##op -/* Ensure obd_setup: used for cleanup which must be called +/* + * Ensure obd_setup: used for cleanup which must be called * while obd is stopping */ static inline int obd_check_dev(struct obd_device *obd) @@ -588,7 +587,8 @@ static inline int obd_cleanup(struct obd_device *obd) static inline void obd_cleanup_client_import(struct obd_device *obd) { - /* If we set up but never connected, the + /* + * If we set up but never connected, the * client import will not have been cleaned. */ down_write(&obd->u.cli.cl_sem); @@ -727,7 +727,8 @@ static inline struct obd_uuid *obd_get_uuid(struct obd_export *exp) return uuid; } -/** Create a new /a exp on device /a obd for the uuid /a cluuid +/* + * Create a new /a exp on device /a obd for the uuid /a cluuid * @param exp New export handle * @param d Connect data, supported flags are set, flags also understood * by obd are returned. @@ -739,7 +740,8 @@ static inline int obd_connect(const struct lu_env *env, void *localdata) { int rc; - __u64 ocf = data ? data->ocd_connect_flags : 0; /* for post-condition + __u64 ocf = data ? data->ocd_connect_flags : 0; /* + * for post-condition * check */ @@ -908,7 +910,8 @@ static inline int obd_destroy_export(struct obd_export *exp) return 0; } -/* @max_age is the oldest time in jiffies that we accept using a cached data. +/* + * @max_age is the oldest time in jiffies that we accept using a cached data. * If the cache is older than @max_age we will get a new value from the * target. Use a value of "cfs_time_current() + HZ" to guarantee freshness. */ @@ -969,7 +972,8 @@ static inline int obd_statfs_rqset(struct obd_export *exp, return rc; } -/* @max_age is the oldest time in jiffies that we accept using a cached data. +/* + * @max_age is the oldest time in jiffies that we accept using a cached data. * If the cache is older than @max_age we will get a new value from the * target. Use a value of "cfs_time_current() + HZ" to guarantee freshness. */ @@ -1133,7 +1137,8 @@ static inline int obd_quotactl(struct obd_export *exp, static inline int obd_health_check(const struct lu_env *env, struct obd_device *obd) { - /* returns: 0 on healthy + /* + * returns: 0 on healthy * >0 on unhealthy + reason code/flag * however the only supported reason == 1 right now * We'll need to define some better reasons @@ -1506,7 +1511,8 @@ static inline int md_get_fid_from_lsm(struct obd_export *exp, return rc; } -/* Unpack an MD struct from disk to in-memory format. +/* + * Unpack an MD struct from disk to in-memory format. * Returns +ve size of unpacked MD (0 for free), or -ve error. * * If *plsm != NULL and lmm == NULL then *lsm will be freed. @@ -1542,7 +1548,8 @@ struct lwp_register_item { char lri_name[MTI_NAME_MAXLEN]; }; -/* I'm as embarrassed about this as you are. +/* + * I'm as embarrassed about this as you are. * * // XXX do not look into _superhack with remaining eye * // XXX if this were any uglier, I'd get my own show on MTV -- 2.7.4