diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2010-12-18 11:15:22 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2011-01-12 20:02:44 -0500 |
commit | c35eebe9939f55b9d51631d03301a7af19090dcc (patch) | |
tree | aad58e63dea9f62baa295db12078de1e00754409 /fs/fuse | |
parent | d93e34faf924bd98f158712d63085662e648e389 (diff) |
switch fuse
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/fuse')
-rw-r--r-- | fs/fuse/dir.c | 1 | ||||
-rw-r--r-- | fs/fuse/inode.c | 10 |
2 files changed, 4 insertions, 7 deletions
diff --git a/fs/fuse/dir.c b/fs/fuse/dir.c index 042af7346ec1..bfed8447ed80 100644 --- a/fs/fuse/dir.c +++ b/fs/fuse/dir.c | |||
@@ -350,7 +350,6 @@ static struct dentry *fuse_lookup(struct inode *dir, struct dentry *entry, | |||
350 | } | 350 | } |
351 | 351 | ||
352 | entry = newent ? newent : entry; | 352 | entry = newent ? newent : entry; |
353 | d_set_d_op(entry, &fuse_dentry_operations); | ||
354 | if (outarg_valid) | 353 | if (outarg_valid) |
355 | fuse_change_entry_timeout(entry, &outarg); | 354 | fuse_change_entry_timeout(entry, &outarg); |
356 | else | 355 | else |
diff --git a/fs/fuse/inode.c b/fs/fuse/inode.c index f62b32cffea9..9e3f68cc1bd1 100644 --- a/fs/fuse/inode.c +++ b/fs/fuse/inode.c | |||
@@ -617,10 +617,8 @@ static struct dentry *fuse_get_dentry(struct super_block *sb, | |||
617 | goto out_iput; | 617 | goto out_iput; |
618 | 618 | ||
619 | entry = d_obtain_alias(inode); | 619 | entry = d_obtain_alias(inode); |
620 | if (!IS_ERR(entry) && get_node_id(inode) != FUSE_ROOT_ID) { | 620 | if (!IS_ERR(entry) && get_node_id(inode) != FUSE_ROOT_ID) |
621 | d_set_d_op(entry, &fuse_dentry_operations); | ||
622 | fuse_invalidate_entry_cache(entry); | 621 | fuse_invalidate_entry_cache(entry); |
623 | } | ||
624 | 622 | ||
625 | return entry; | 623 | return entry; |
626 | 624 | ||
@@ -719,10 +717,8 @@ static struct dentry *fuse_get_parent(struct dentry *child) | |||
719 | } | 717 | } |
720 | 718 | ||
721 | parent = d_obtain_alias(inode); | 719 | parent = d_obtain_alias(inode); |
722 | if (!IS_ERR(parent) && get_node_id(inode) != FUSE_ROOT_ID) { | 720 | if (!IS_ERR(parent) && get_node_id(inode) != FUSE_ROOT_ID) |
723 | d_set_d_op(parent, &fuse_dentry_operations); | ||
724 | fuse_invalidate_entry_cache(parent); | 721 | fuse_invalidate_entry_cache(parent); |
725 | } | ||
726 | 722 | ||
727 | return parent; | 723 | return parent; |
728 | } | 724 | } |
@@ -989,6 +985,8 @@ static int fuse_fill_super(struct super_block *sb, void *data, int silent) | |||
989 | iput(root); | 985 | iput(root); |
990 | goto err_put_conn; | 986 | goto err_put_conn; |
991 | } | 987 | } |
988 | /* only now - we want root dentry with NULL ->d_op */ | ||
989 | sb->s_d_op = &fuse_dentry_operations; | ||
992 | 990 | ||
993 | init_req = fuse_request_alloc(); | 991 | init_req = fuse_request_alloc(); |
994 | if (!init_req) | 992 | if (!init_req) |