- Patch provided by Martin Drab.
static int lu_readdir(struct file*, void*, filldir_t);
static int lu_readdir(struct file*, void*, filldir_t);
-static struct dentry *lu_lookup(struct inode*, struct dentry*);
+static struct dentry *lu_lookup(struct inode*, struct dentry*, struct nameidata *);
static int lu_mkdir(struct inode*, struct dentry*, int);
static int lu_mkdir(struct inode*, struct dentry*, int);
-static int lu_create(struct inode*, struct dentry*, int);
+static int lu_create(struct inode*, struct dentry*, int, struct nameidata *);
static int lu_rmdir(struct inode*, struct dentry*);
static int lu_rename(struct inode*, struct dentry*, struct inode*, struct dentry*);
static int lu_unlink(struct inode*, struct dentry*);
static int lu_rmdir(struct inode*, struct dentry*);
static int lu_rename(struct inode*, struct dentry*, struct inode*, struct dentry*);
static int lu_unlink(struct inode*, struct dentry*);
.setattr = lufs_notify_change,
};
.setattr = lufs_notify_change,
};
-static int lu_lookup_validate(struct dentry *dentry, int flags)
+static int lu_lookup_validate(struct dentry *dentry, struct nameidata *nd)
{
struct inode *inode = dentry->d_inode;
unsigned long age = jiffies - dentry->d_time;
{
struct inode *inode = dentry->d_inode;
unsigned long age = jiffies - dentry->d_time;
-static struct dentry* lu_lookup(struct inode *dir, struct dentry *dentry)
+static struct dentry* lu_lookup(struct inode *dir, struct dentry *dentry, struct nameidata *nd)
{
int res;
struct lufs_fattr fattr;
{
int res;
struct lufs_fattr fattr;
-static int lu_create(struct inode *dir, struct dentry *dentry, int mode)
+static int lu_create(struct inode *dir, struct dentry *dentry, int mode, struct nameidata *nd)
{
int res;
struct server_slot *slot;
{
int res;
struct server_slot *slot;
.mmap = lu_file_mmap,
.open = lu_file_open,
.release = lu_file_release,
.mmap = lu_file_mmap,
.open = lu_file_open,
.release = lu_file_release,
- :fsync = lu_file_fsync,
+ .fsync = lu_file_fsync,
};
struct inode_operations lu_file_inode_operations = {
};
struct inode_operations lu_file_inode_operations = {
static void lu_delete_inode(struct inode*);
static void lu_put_super(struct super_block*);
static void lu_delete_inode(struct inode*);
static void lu_put_super(struct super_block*);
-static int lu_statfs(struct super_block*, struct statfs*);
+static int lu_statfs(struct super_block*, struct kstatfs*);
static struct super_operations lu_sops = {
.drop_inode = generic_delete_inode,
static struct super_operations lu_sops = {
.drop_inode = generic_delete_inode,
-static int lu_statfs(struct super_block *sb, struct statfs *attr)
+static int lu_statfs(struct super_block *sb, struct kstatfs *attr)
{
int res;
struct iovec riov;
{
int res;
struct iovec riov;
-static struct super_block *lu_get_sb(struct file_system_type *fs_type, int flags, char *dev_name, void *data)
+static struct super_block *lu_get_sb(struct file_system_type *fs_type, int flags, const char *dev_name, void *data)
{
return get_sb_nodev(fs_type, flags, data, lu_fill_super);
}
{
return get_sb_nodev(fs_type, flags, data, lu_fill_super);
}