From: Maxim Patlasov Date: Fri, 26 Oct 2012 15:50:36 +0000 (+0400) Subject: fuse: optimize __fuse_direct_io() X-Git-Tag: v3.9-rc1~135^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5565a9d884327ac45d49041f1b846dac273e110c;p=pandora-kernel.git fuse: optimize __fuse_direct_io() __fuse_direct_io() allocates fuse-requests by calling fuse_get_req(fc, n). The patch calculates 'n' based on iov[] array. This is useful because allocating FUSE_MAX_PAGES_PER_REQ page pointers and descriptors for each fuse request would be waste of memory in case of iov-s of smaller size. Signed-off-by: Maxim Patlasov Signed-off-by: Miklos Szeredi --- Reading git-diff-tree failed