Skip to content

Commit

Permalink
[XFS] * There is trivial "inode => vnode => inode" conversion, but only
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alexey Dobriyan authored and Nathan Scott committed Jun 27, 2006
1 parent b71d300 commit 71306f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/xfs/linux-2.6/xfs_vnode.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 71306f3

Please sign in to comment.