summaryrefslogtreecommitdiffstats
path: root/fs/fuse/fuse_i.h
diff options
context:
space:
mode:
authorMaxim Patlasov <mpatlasov@parallels.com>2012-10-26 19:50:36 +0400
committerMiklos Szeredi <mszeredi@suse.cz>2013-01-24 16:21:28 +0100
commit5565a9d884327ac45d49041f1b846dac273e110c (patch)
tree936c0ec109cc6c92e1264c33d8cde7ace637f97a /fs/fuse/fuse_i.h
parent7c190c8b9c0dd373cdd4d96e63306ec6e1a7115d (diff)
downloadlinux-5565a9d884327ac45d49041f1b846dac273e110c.tar.gz
linux-5565a9d884327ac45d49041f1b846dac273e110c.tar.bz2
linux-5565a9d884327ac45d49041f1b846dac273e110c.zip
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 <mpatlasov@parallels.com> Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Diffstat (limited to 'fs/fuse/fuse_i.h')
0 files changed, 0 insertions, 0 deletions