Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

fuse: fix thinko in max I/O size calucation

Use max not min to enforce a lower limit on the max I/O size.

This bug was introduced by "fuse: fix max i/o size calculation" (commit
e5d9a0df07484d6d191756878c974e4307fb24ce).

Thanks to Brian Wang for noticing.

Reported-by: Brian Wang <ywang221@hotmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Acked-by: Szabolcs Szakacsits <szaka@ntfs-3g.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Miklos Szeredi and committed by
Linus Torvalds
f948d564 cd50e892

+2 -2
+2 -2
fs/fuse/inode.c
··· 591 591 fc->bdi.ra_pages = min(fc->bdi.ra_pages, ra_pages); 592 592 fc->minor = arg->minor; 593 593 fc->max_write = arg->minor < 5 ? 4096 : arg->max_write; 594 - fc->max_write = min_t(unsigned, 4096, fc->max_write); 594 + fc->max_write = max_t(unsigned, 4096, fc->max_write); 595 595 fc->conn_init = 1; 596 596 } 597 597 fuse_put_request(fc, req); ··· 667 667 fc->flags = d.flags; 668 668 fc->user_id = d.user_id; 669 669 fc->group_id = d.group_id; 670 - fc->max_read = min_t(unsigned, 4096, d.max_read); 670 + fc->max_read = max_t(unsigned, 4096, d.max_read); 671 671 672 672 /* Used by get_root_inode() */ 673 673 sb->s_fs_info = fc;