diff options
author | David Sterba <dsterba@suse.com> | 2017-03-02 18:54:52 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-04-18 14:07:25 +0200 |
commit | cc8385b59e17d489814d54d6a846aba7051fdea5 (patch) | |
tree | 5fec399f1ead33f3e52de975c185eaf788ad2978 /fs/btrfs/disk-io.c | |
parent | Btrfs: consistent usage of types in balance_args (diff) | |
download | linux-cc8385b59e17d489814d54d6a846aba7051fdea5.tar.xz linux-cc8385b59e17d489814d54d6a846aba7051fdea5.zip |
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>
Diffstat (limited to 'fs/btrfs/disk-io.c')
0 files changed, 0 insertions, 0 deletions