From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: Re: [PATCH 1/3] inotify: Provide function for name length rounding Date: Wed, 11 Dec 2013 03:22:00 -0800 Message-ID: <20131211112200.GA1915@infradead.org> References: <1385077019-21544-1-git-send-email-jack@suse.cz> <1385077019-21544-2-git-send-email-jack@suse.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Andrew Morton , linux-fsdevel@vger.kernel.org, Al Viro , Eric Paris To: Jan Kara Return-path: Received: from bombadil.infradead.org ([198.137.202.9]:43732 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751853Ab3LKLWC (ORCPT ); Wed, 11 Dec 2013 06:22:02 -0500 Content-Disposition: inline In-Reply-To: <1385077019-21544-2-git-send-email-jack@suse.cz> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Fri, Nov 22, 2013 at 12:36:57AM +0100, Jan Kara wrote: > Rounding of name length when passing it to userspace was done in several > places. Provide a function to do it and use it in all places. > > Signed-off-by: Jan Kara Looks good, Reviewed-by: Christoph Hellwig BTw, I hadn't noticed kernel.h has a roundup() in addition to round_up(). And XFS also has roundup64 which isn't needed as far as I can see.. None of them are documented in the slightest way either, ugh..