]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: send, apply asynchronous page cache readahead to enhance page read
authorKuanling Huang <peterh@synology.com>
Fri, 15 Sep 2017 08:47:45 +0000 (16:47 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 30 Oct 2017 11:27:57 +0000 (12:27 +0100)
commitf6fb6a1f98acb206ee55807243ba9b26aaad1432
treef7293754eb9652741d9516475d6282716efcc938
parent90cc1a00e244015f1443dee002d9a6fc19978305
Btrfs: send, apply asynchronous page cache readahead to enhance page read

By analyzing the perf on btrfs send, we found it take large amount of
cpu time on page_cache_sync_readahead. This effort can be reduced after
switching to asynchronous one. Overall performance gain on HDD and SSD
were 9 and 15 percent if simply send a large file.

Signed-off-by: Kuanling Huang <peterh@synology.com>
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/send.c