From: Maxim Patlasov Date: Fri, 26 Oct 2012 15:48:42 +0000 (+0400) Subject: fuse: rework fuse_retrieve() X-Git-Tag: v3.9-rc1~135^2~18 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4d53dc99baf139e4fa0d395f7658032cc2eb3297;p=pandora-kernel.git fuse: rework fuse_retrieve() The patch reworks fuse_retrieve() to allocate only so many page pointers as needed. The core part of the patch is the following calculation: num_pages = (num + offset + PAGE_SIZE - 1) >> PAGE_SHIFT; (thanks Miklos for formula). All other changes are mostly shuffling lines. Signed-off-by: Maxim Patlasov Signed-off-by: Miklos Szeredi --- Reading git-diff-tree failed