struct xfs_trans;
struct xfs_mount;
struct xfs_inode_log_item;
-struct xfs_dir_ops;
/*
* These are not actually used, they are only for userspace build
unsigned int i_cformat; /* format of cow fork */
xfs_fsize_t i_size; /* in-memory size */
- const struct xfs_dir_ops *d_ops; /* directory ops vector */
struct xfs_ifork_ops *i_fork_ops; /* fork verifiers */
struct inode i_vnode;
} xfs_inode_t;
struct xfs_inode;
struct xfs_buftarg;
-struct xfs_dir_ops;
struct xfs_da_geometry;
/*
struct xfs_da_geometry *m_dir_geo; /* directory block geometry */
struct xfs_da_geometry *m_attr_geo; /* attribute block geometry */
- const struct xfs_dir_ops *m_dir_inode_ops; /* vector of dir inode ops */
- const struct xfs_dir_ops *m_nondir_inode_ops; /* !dir inode ops */
/*
* anonymous struct to allow xfs_dquot_buf.c to compile.
return -EFSCORRUPTED;
}
- /*
- * set up the inode ops structure that the libxfs code relies on
- */
- if (XFS_ISDIR(ip))
- ip->d_ops = mp->m_dir_inode_ops;
- else
- ip->d_ops = mp->m_nondir_inode_ops;
-
*ipp = ip;
return 0;
}
ip->i_d.di_aformat = XFS_DINODE_FMT_EXTENTS;
ip->i_d.di_anextents = 0;
- /*
- * set up the inode ops structure that the libxfs code relies on
- */
- if (XFS_ISDIR(ip))
- ip->d_ops = ip->i_mount->m_dir_inode_ops;
- else
- ip->d_ops = ip->i_mount->m_nondir_inode_ops;
-
/*
* Log the new values stuffed into the inode.
*/
/*
* initialize the directory
*/
- ip->d_ops = mp->m_dir_inode_ops;
libxfs_dir_init(tp, ip, ip);
error = -libxfs_trans_commit(tp);