From mboxrd@z Thu Jan 1 00:00:00 1970 From: Al Viro Subject: Re: [patch 5/11] btrfs: remove unneeded null check in btrfs_rename() Date: Sat, 29 May 2010 20:26:39 +0100 Message-ID: <20100529192639.GP31073@ZenIV.linux.org.uk> References: <20100529094508.GF5483@bicker> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Dan Carpenter , linux-btrfs@vger.kernel.org, Yan Zheng , Josef Bacik , Chris Mason , kernel-janitors@vger.kernel.org To: Mike Fedyk Return-path: In-Reply-To: List-ID: On Sat, May 29, 2010 at 11:01:56AM -0700, Mike Fedyk wrote: > I think code like this is here because there are still a lot of > features that are being added to btrfs and it's easier to have the > additional checks than continually adding and removing them as the > code changes. _What_ features? Check for ->rename() argument not being negative is done outside of btrfs.