diff options
-rw-r--r-- | fs/fuse/file.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/fuse/file.c b/fs/fuse/file.c index cc6ffd23b80f..06096b60f1df 100644 --- a/fs/fuse/file.c +++ b/fs/fuse/file.c | |||
@@ -124,7 +124,8 @@ int fuse_do_open(struct fuse_conn *fc, u64 nodeid, struct file *file, | |||
124 | return -ENOMEM; | 124 | return -ENOMEM; |
125 | 125 | ||
126 | ff->fh = 0; | 126 | ff->fh = 0; |
127 | ff->open_flags = FOPEN_KEEP_CACHE; /* Default for no-open */ | 127 | /* Default for no-open */ |
128 | ff->open_flags = FOPEN_KEEP_CACHE | (isdir ? FOPEN_CACHE_DIR : 0); | ||
128 | if (isdir ? !fc->no_opendir : !fc->no_open) { | 129 | if (isdir ? !fc->no_opendir : !fc->no_open) { |
129 | struct fuse_open_out outarg; | 130 | struct fuse_open_out outarg; |
130 | int err; | 131 | int err; |