]> git.karo-electronics.de Git - karo-tx-linux.git/commit
fuse: rework fuse_readpages()
authorMaxim Patlasov <mpatlasov@parallels.com>
Fri, 26 Oct 2012 15:48:51 +0000 (19:48 +0400)
committerMiklos Szeredi <mszeredi@suse.cz>
Tue, 6 Nov 2012 12:09:36 +0000 (13:09 +0100)
commit68bedda369644efccd65870e0c45b114e64fa193
tree4de07cfa031cc7ac36c4edfd818f6b7d7789beb6
parentdfa74576499c79bf82f0e3721ff3ec977153d8a4
fuse: rework fuse_readpages()

The patch uses 'nr_pages' argument of fuse_readpages() as heuristics for the
number of page pointers to allocate.

This can be improved further by taking in consideration fc->max_read and gaps
between page indices, but it's not clear whether it's worthy or not.

Signed-off-by: Maxim Patlasov <mpatlasov@parallels.com>
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
fs/fuse/file.c