| To: | Barry Naujok <bnaujok@xxxxxxx> |
|---|---|
| Subject: | Re: [REVIEW #2] cleanup - remove bhv_vname_t |
| From: | Christoph Hellwig <hch@xxxxxxxxxxxxx> |
| Date: | Tue, 8 Apr 2008 06:48:51 -0400 |
| Cc: | "xfs@xxxxxxxxxxx" <xfs@xxxxxxxxxxx>, xfs-dev <xfs-dev@xxxxxxx> |
| In-reply-to: | <20080408085153.GA19699@xxxxxxxxxxxxx> |
| References: | <op.t897ipuu3jf8g2@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <20080408085153.GA19699@xxxxxxxxxxxxx> |
| Sender: | xfs-bounce@xxxxxxxxxxx |
| User-agent: | Mutt/1.5.17 (2007-11-01) |
On Tue, Apr 08, 2008 at 04:51:53AM -0400, Christoph Hellwig wrote:
> > +static inline int
> > +xfs_dir_check_canenter(uint resblks, struct xfs_trans *tp,
> > + struct xfs_inode *dp, struct xfs_name *name)
> > +{
> > + if (resblks)
> > + return 0;
> > + return xfs_dir_canenter(tp, dp, name);;
> > +}
>
> Probably makes sense to have this out of line.
Actuallt this is the only caller of xfs_dir_canenter with your patch so
you should merge the resblks check into xfs_dir_canenter. Please also
add a comment on why we do the check. Also resblks is normally the
last argument to functions, we should follow that convention here.
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [REVIEW #2] cleanup - remove bhv_vname_t, Christoph Hellwig |
|---|---|
| Next by Date: | Re: [PATCH 0/7] XFS: case-insensitive lookup and Unicode support, Christoph Hellwig |
| Previous by Thread: | Re: [REVIEW #2] cleanup - remove bhv_vname_t, Christoph Hellwig |
| Next by Thread: | Re: [REVIEW #2] cleanup - remove bhv_vname_t, Barry Naujok |
| Indexes: | [Date] [Thread] [Top] [All Lists] |