From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752075AbdFVBz6 (ORCPT ); Wed, 21 Jun 2017 21:55:58 -0400 Received: from imap.thunk.org ([74.207.234.97]:57770 "EHLO imap.thunk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751113AbdFVBz4 (ORCPT ); Wed, 21 Jun 2017 21:55:56 -0400 Date: Wed, 21 Jun 2017 21:55:46 -0400 From: "Theodore Ts'o" To: Tahsin Erdogan Cc: Andreas Dilger , "Darrick J . Wong" , Jan Kara , linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 10/32] ext4: change ext4_xattr_inode_iget() signature Message-ID: <20170622015546.q4okustbh4yyxwjr@thunk.org> Mail-Followup-To: Theodore Ts'o , Tahsin Erdogan , Andreas Dilger , "Darrick J . Wong" , Jan Kara , linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org References: <20170621212142.16581-1-tahsin@google.com> <20170621212142.16581-10-tahsin@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170621212142.16581-10-tahsin@google.com> User-Agent: NeoMutt/20170113 (1.7.2) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: tytso@thunk.org X-SA-Exim-Scanned: No (on imap.thunk.org); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 21, 2017 at 02:21:20PM -0700, Tahsin Erdogan wrote: > In general, kernel functions indicate success/failure through their return > values. This function returns the status as an output parameter and reserves > the return value for the inode. Make it follow the general convention. > > Signed-off-by: Tahsin Erdogan The fact that we have several conventions for error passing, is due to the long history of the ext2/3/4 code base. In the long term, I'd actually like to see us gradually move everyhing to use the ERR_PTR convention. It's a bit more efficient for the common (no error) case, and it allows us to drop an extra parameter from the function signature. Still, it's incrementally better this way, so thanks, added to the ext4 patch queue. - Ted