Re: [PATCH] xfs: use container_of in vn_from_inode()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jun 20, 2006 at 12:42:15AM -0700, Andrew Morton wrote:
> On Tue, 20 Jun 2006 17:28:19 +1000
> Nathan Scott <nathans@xxxxxxx> wrote:
> > On Mon, Jun 19, 2006 at 11:59:31PM -0700, Andrew Morton wrote:
> > > > -	return (vnode_t *)list_entry(inode, vnode_t, v_inode);
> > > > +	return (vnode_t *)container_of(inode, vnode_t, v_inode);
> > 
> > Whats the point of this change?
> 
> It's just a cleanup.  We're not dealing with a list_head here, so don't use
> list_head functions on it.

Mkay, fair enough.

> >  list_entry == container_of.
> > Is list_entry being removed from list.h?
> 
> Nope.
> 
> > This wont apply as-is to -mm, as the XFS code has moved on.
> 
> I fixed that up.

Thanks.

-- 
Nathan
-
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux