inode->i_mode = mode;
inode->i_uid = 0;
inode->i_gid = 0;
+ inode->i_blksize = PAGE_CACHE_SIZE;
inode->i_blocks = 0;
inode->i_atime = inode->i_mtime = inode->i_ctime = CURRENT_TIME;
}
static int default_open(struct inode * inode, struct file * filp)
{
- if (inode->i_private)
- filp->private_data = inode->i_private;
+ if (inode->u.generic_ip)
+ filp->private_data = inode->u.generic_ip;
return 0;
}
if (!d)
return -EFAULT;
- d->d_inode->i_private = val;
+ d->d_inode->u.generic_ip = val;
return 0;
}
if (!d)
return -EFAULT;
- d->d_inode->i_private = val;
+ d->d_inode->u.generic_ip = val;
return 0;
}
if (!d)
return -EFAULT;
- d->d_inode->i_private = val;
+ d->d_inode->u.generic_ip = val;
return 0;
}
}
-static int oprofilefs_get_sb(struct file_system_type *fs_type,
- int flags, const char *dev_name, void *data, struct vfsmount *mnt)
+static struct super_block *oprofilefs_get_sb(struct file_system_type *fs_type,
+ int flags, const char *dev_name, void *data)
{
- return get_sb_single(fs_type, flags, data, oprofilefs_fill_super, mnt);
+ return get_sb_single(fs_type, flags, data, oprofilefs_fill_super);
}