diff options
-rw-r--r-- | fs/hostfs/hostfs_kern.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/hostfs/hostfs_kern.c b/fs/hostfs/hostfs_kern.c index 112ba5aa0848..92b008f564a4 100644 --- a/fs/hostfs/hostfs_kern.c +++ b/fs/hostfs/hostfs_kern.c | |||
@@ -295,7 +295,7 @@ static int hostfs_readdir(struct file *file, struct dir_context *ctx) | |||
295 | return 0; | 295 | return 0; |
296 | } | 296 | } |
297 | 297 | ||
298 | static int hostfs_file_open(struct inode *ino, struct file *file) | 298 | static int hostfs_open(struct inode *ino, struct file *file) |
299 | { | 299 | { |
300 | char *name; | 300 | char *name; |
301 | fmode_t mode = 0; | 301 | fmode_t mode = 0; |
@@ -386,7 +386,7 @@ static const struct file_operations hostfs_file_fops = { | |||
386 | .write_iter = generic_file_write_iter, | 386 | .write_iter = generic_file_write_iter, |
387 | .write = new_sync_write, | 387 | .write = new_sync_write, |
388 | .mmap = generic_file_mmap, | 388 | .mmap = generic_file_mmap, |
389 | .open = hostfs_file_open, | 389 | .open = hostfs_open, |
390 | .release = hostfs_file_release, | 390 | .release = hostfs_file_release, |
391 | .fsync = hostfs_fsync, | 391 | .fsync = hostfs_fsync, |
392 | }; | 392 | }; |
@@ -395,6 +395,8 @@ static const struct file_operations hostfs_dir_fops = { | |||
395 | .llseek = generic_file_llseek, | 395 | .llseek = generic_file_llseek, |
396 | .iterate = hostfs_readdir, | 396 | .iterate = hostfs_readdir, |
397 | .read = generic_read_dir, | 397 | .read = generic_read_dir, |
398 | .open = hostfs_open, | ||
399 | .fsync = hostfs_fsync, | ||
398 | }; | 400 | }; |
399 | 401 | ||
400 | static int hostfs_writepage(struct page *page, struct writeback_control *wbc) | 402 | static int hostfs_writepage(struct page *page, struct writeback_control *wbc) |