linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] xfs: use container_of in vn_from_inode()
@ 2006-06-19 11:44 Alexey Dobriyan
  2006-06-20  6:59 ` Andrew Morton
  0 siblings, 1 reply; 5+ messages in thread
From: Alexey Dobriyan @ 2006-06-19 11:44 UTC (permalink / raw)
  To: Nathan Scott; +Cc: linux-fsdevel, Andrew Morton

There is no list in vnode <=> inode correspondence.

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
---

 fs/xfs/linux-2.6/xfs_vnode.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

--- a/fs/xfs/linux-2.6/xfs_vnode.h
+++ b/fs/xfs/linux-2.6/xfs_vnode.h
@@ -118,7 +118,7 @@ typedef enum {
  */
 static inline struct vnode *vn_from_inode(struct inode *inode)
 {
-	return (vnode_t *)list_entry(inode, vnode_t, v_inode);
+	return (vnode_t *)container_of(inode, vnode_t, v_inode);
 }
 static inline struct inode *vn_to_inode(struct vnode *vnode)
 {


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-06-20  8:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-19 11:44 [PATCH] xfs: use container_of in vn_from_inode() Alexey Dobriyan
2006-06-20  6:59 ` Andrew Morton
2006-06-20  7:28   ` Nathan Scott
2006-06-20  7:42     ` Andrew Morton
2006-06-20  8:04       ` Nathan Scott

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).