From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeff Liu Subject: Re: [PATCH 1/5] xfs: factor prid related codes into xfs_get_initial_prid() Date: Sat, 14 Dec 2013 19:20:17 +0800 Message-ID: <52AC3EF1.6090106@oracle.com> References: <1386944873-16796-1-git-send-email-zwu.kernel@gmail.com> <1386944873-16796-2-git-send-email-zwu.kernel@gmail.com> <20131213163211.GD20803@infradead.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: linux-fsdevel@vger.kernel.org, Zhi Yong Wu , linux-kernel@vger.kernel.org, xfs@oss.sgi.com To: Christoph Hellwig , Zhi Yong Wu Return-path: In-Reply-To: <20131213163211.GD20803@infradead.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: xfs-bounces@oss.sgi.com Sender: xfs-bounces@oss.sgi.com List-Id: linux-fsdevel.vger.kernel.org On 12/14 2013 00:32 AM, Christoph Hellwig wrote: >> +static inline prid_t xfs_get_initial_prid(struct xfs_inode *dp) >> +{ >> + if (dp->i_d.di_flags & XFS_DIFLAG_PROJINHERIT) >> + return xfs_get_projid(dp); >> + else >> + return XFS_PROJID_DEFAULT; >> +} > > You could skip the else here. Except that, I'd suggest we move this helper to proper header file with further refactoring in xfs_symlink(), and it could be a separate patch. Thanks, -Jeff _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs