commit | cc8385b59e17d489814d54d6a846aba7051fdea5 | [log] [tgz] |
---|---|---|
author | David Sterba <dsterba@suse.com> | Thu Mar 02 18:54:52 2017 +0100 |
committer | David Sterba <dsterba@suse.com> | Tue Apr 18 14:07:25 2017 +0200 |
tree | 5fec399f1ead33f3e52de975c185eaf788ad2978 | |
parent | 261cc2cca0a8c1d817be65434052feb1db1fd961 [diff] |
btrfs: preallocate radix tree node for readahead We can preallocate the node so insertion does not have to do that under the lock. The GFP flags for the per-device radix tree are initialized to GFP_NOFS & ~__GFP_DIRECT_RECLAIM but we can use GFP_KERNEL, same as an allocation above anyway, but also because readahead is optional and not on any critical writeout path. Reviewed-by: Liu Bo <bo.li.liu@oracle.com> Signed-off-by: David Sterba <dsterba@suse.com>