aboutsummaryrefslogtreecommitdiffstats
path: root/fs/fuse/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/fuse/file.c')
-rw-r--r--fs/fuse/file.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/fs/fuse/file.c b/fs/fuse/file.c
index fb1713e76756..f3ef2bde983b 100644
--- a/fs/fuse/file.c
+++ b/fs/fuse/file.c
@@ -106,14 +106,6 @@ int fuse_open_common(struct inode *inode, struct file *file, int isdir)
106 if (err) 106 if (err)
107 return err; 107 return err;
108 108
109 /* If opening the root node, no lookup has been performed on
110 it, so the attributes must be refreshed */
111 if (get_node_id(inode) == FUSE_ROOT_ID) {
112 err = fuse_do_getattr(inode);
113 if (err)
114 return err;
115 }
116
117 ff = fuse_file_alloc(); 109 ff = fuse_file_alloc();
118 if (!ff) 110 if (!ff)
119 return -ENOMEM; 111 return -ENOMEM;