[XFS] * There is trivial "inode => vnode => inode" conversion, but only
authorAlexey Dobriyan <adobriyan@gmail.com>
Tue, 27 Jun 2006 04:10:29 +0000 (14:10 +1000)
committerNathan Scott <nathans@sgi.com>
Tue, 27 Jun 2006 04:10:29 +0000 (14:10 +1000)
flags and   mode of final inode are looked at. Pass original inode
instead. * Two occurences of bhv_vnode_t go out.

SGI-PV: 904196
SGI-Modid: xfs-linux-melb:xfs-kern:26298a

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Nathan Scott <nathans@sgi.com>
fs/xfs/linux-2.6/xfs_vnode.h

index 35c6a01963a77c9c52af0ba70453926aab316f04..c42b3221b20cb95a0a1303b2d6c51a4aff071148 100644 (file)
@@ -93,7 +93,7 @@ typedef enum {
  */
 static inline struct bhv_vnode *vn_from_inode(struct inode *inode)
 {
-       return (bhv_vnode_t *)list_entry(inode, bhv_vnode_t, v_inode);
+       return container_of(inode, bhv_vnode_t, v_inode);
 }
 static inline struct inode *vn_to_inode(struct bhv_vnode *vnode)
 {