On Mon, 19 Jun 2006 15:44:50 +0400 Alexey Dobriyan <adobriyan@xxxxxxxxx> wrote: > 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); > } The typecast can go away too. - 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