diff options
Diffstat (limited to 'fs/fuse/inode.c')
-rw-r--r-- | fs/fuse/inode.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/fuse/inode.c b/fs/fuse/inode.c index fa03f80806e5..f229d6962643 100644 --- a/fs/fuse/inode.c +++ b/fs/fuse/inode.c | |||
@@ -124,6 +124,7 @@ static void fuse_init_inode(struct inode *inode, struct fuse_attr *attr) | |||
124 | i_size_write(inode, attr->size); | 124 | i_size_write(inode, attr->size); |
125 | if (S_ISREG(inode->i_mode)) { | 125 | if (S_ISREG(inode->i_mode)) { |
126 | fuse_init_common(inode); | 126 | fuse_init_common(inode); |
127 | fuse_init_file_inode(inode); | ||
127 | } else if (S_ISDIR(inode->i_mode)) | 128 | } else if (S_ISDIR(inode->i_mode)) |
128 | fuse_init_dir(inode); | 129 | fuse_init_dir(inode); |
129 | else if (S_ISLNK(inode->i_mode)) | 130 | else if (S_ISLNK(inode->i_mode)) |
@@ -137,6 +138,7 @@ static void fuse_init_inode(struct inode *inode, struct fuse_attr *attr) | |||
137 | /* Don't let user create weird files */ | 138 | /* Don't let user create weird files */ |
138 | inode->i_mode = S_IFREG; | 139 | inode->i_mode = S_IFREG; |
139 | fuse_init_common(inode); | 140 | fuse_init_common(inode); |
141 | fuse_init_file_inode(inode); | ||
140 | } | 142 | } |
141 | } | 143 | } |
142 | 144 | ||