diff options
author | 2012-10-26 19:48:42 +0400 | |
---|---|---|
committer | 2013-01-24 16:21:26 +0100 | |
commit | 4d53dc99baf139e4fa0d395f7658032cc2eb3297 (patch) | |
tree | 4709fcfd8631d744abc95195a257b67000e863fa /tools/perf/scripts/python/export-to-postgresql.py | |
parent | fuse: categorize fuse_get_req() (diff) | |
download | linux-dev-4d53dc99baf139e4fa0d395f7658032cc2eb3297.tar.xz linux-dev-4d53dc99baf139e4fa0d395f7658032cc2eb3297.zip |
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 <mpatlasov@parallels.com>
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions