From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga03.intel.com ([134.134.136.65]) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1aAyvc-00038T-Pa for linux-mtd@lists.infradead.org; Mon, 21 Dec 2015 11:47:01 +0000 Message-ID: <1450698397.2276.3.camel@gmail.com> Subject: Re: [PATCH] UBIFS: add a comment in key.h for unused parameter From: Artem Bityutskiy Reply-To: dedekind1@gmail.com To: Dongsheng Yang , linux-mtd@lists.infradead.org Cc: richard@nod.at, david@sigma-star.at Date: Mon, 21 Dec 2015 13:46:37 +0200 In-Reply-To: <1450581920-21780-1-git-send-email-yangds.fnst@cn.fujitsu.com> References: <1450581920-21780-1-git-send-email-yangds.fnst@cn.fujitsu.com> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Sun, 2015-12-20 at 11:25 +0800, Dongsheng Yang wrote: > Add a comment in key.h to explain why we keep an unused > parameter in key helpers. > > Signed-off-by: Dongsheng Yang > --- >  fs/ubifs/key.h | 6 ++++++ >  1 file changed, 6 insertions(+) > > diff --git a/fs/ubifs/key.h b/fs/ubifs/key.h > index 92a8491..dce72c4 100644 > --- a/fs/ubifs/key.h > +++ b/fs/ubifs/key.h > @@ -34,6 +34,12 @@ >   * node. We use "r5" hash borrowed from reiserfs. >   */ >   > +/* > + * Lot's of the key helpers require a struct ubifs_info *c as the > first parameter. > + * But we are not using it at all currently. That's designed for > scalability for > + * different c->key_format. But right now, there is only one key > type, UBIFS_SIMPLE_KEY_FMT. > + */ I think word "scalability" is not a perfect fit here. Just say for future extensions, or something like this. Scalability is a bit confusing.