#include "vxfs_extern.h"
-extern const struct address_space_operations vxfs_aops;
-extern const struct address_space_operations vxfs_immed_aops;
+extern struct address_space_operations vxfs_aops;
+extern struct address_space_operations vxfs_immed_aops;
extern struct inode_operations vxfs_immed_symlink_iops;
ip->i_ctime.tv_nsec = 0;
ip->i_mtime.tv_nsec = 0;
+ ip->i_blksize = PAGE_SIZE;
ip->i_blocks = vip->vii_blocks;
ip->i_generation = vip->vii_gen;
- ip->i_private = vip;
+ ip->u.generic_ip = (void *)vip;
}
{
struct super_block *sbp = ip->i_sb;
struct vxfs_inode_info *vip;
- const struct address_space_operations *aops;
+ struct address_space_operations *aops;
ino_t ino = ip->i_ino;
if (!(vip = __vxfs_iget(ino, VXFS_SBI(sbp)->vsi_ilist)))
void
vxfs_clear_inode(struct inode *ip)
{
- kmem_cache_free(vxfs_inode_cachep, ip->i_private);
+ kmem_cache_free(vxfs_inode_cachep, ip->u.generic_ip);
}