Skip to content

Commit

Permalink
fuse: s_time_gran fix
Browse files Browse the repository at this point in the history
Default s_time_gran is 1, don't overwrite that if userspace didn't
explicitly specify one.

Signed-off-by: Miklos Szeredi <[email protected]>
Cc: <[email protected]> # v3.15+
  • Loading branch information
Miklos Szeredi committed Jul 22, 2014
1 parent 9a3c414 commit a800bad
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions fs/fuse/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -907,9 +907,6 @@ static void process_init_reply(struct fuse_conn *fc, struct fuse_req *req)
fc->writeback_cache = 1;
if (arg->time_gran && arg->time_gran <= 1000000000)
fc->sb->s_time_gran = arg->time_gran;
else
fc->sb->s_time_gran = 1000000000;

} else {
ra_pages = fc->max_read / PAGE_CACHE_SIZE;
fc->no_lock = 1;
Expand Down

0 comments on commit a800bad

Please sign in to comment.