diff options
Diffstat (limited to 'fs/fuse')
-rw-r--r-- | fs/fuse/inode.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/fuse/inode.c b/fs/fuse/inode.c index 5997e4940512..560eafcdd6a7 100644 --- a/fs/fuse/inode.c +++ b/fs/fuse/inode.c | |||
@@ -891,6 +891,11 @@ static void process_init_reply(struct fuse_conn *fc, struct fuse_req *req) | |||
891 | fc->async_dio = 1; | 891 | fc->async_dio = 1; |
892 | if (arg->flags & FUSE_WRITEBACK_CACHE) | 892 | if (arg->flags & FUSE_WRITEBACK_CACHE) |
893 | fc->writeback_cache = 1; | 893 | fc->writeback_cache = 1; |
894 | if (arg->time_gran && arg->time_gran <= 1000000000) | ||
895 | fc->sb->s_time_gran = arg->time_gran; | ||
896 | else | ||
897 | fc->sb->s_time_gran = 1000000000; | ||
898 | |||
894 | } else { | 899 | } else { |
895 | ra_pages = fc->max_read / PAGE_CACHE_SIZE; | 900 | ra_pages = fc->max_read / PAGE_CACHE_SIZE; |
896 | fc->no_lock = 1; | 901 | fc->no_lock = 1; |