diff options
author | Coly Li <colyli@suse.de> | 2018-08-09 15:48:44 +0800 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-08-09 08:21:05 -0600 |
commit | c2e8dcf7fa43ed236cb341c33aa3a75687557c43 (patch) | |
tree | 76e7706cf9a9be055724727375fd452930a284ba /Kbuild | |
parent | b4cb6efc1af7da2fa1e9ff0eaf90e2be02cfdf5f (diff) | |
download | op-kernel-dev-c2e8dcf7fa43ed236cb341c33aa3a75687557c43.zip op-kernel-dev-c2e8dcf7fa43ed236cb341c33aa3a75687557c43.tar.gz |
bcache: avoid unncessary cache prefetch bch_btree_node_get()
In bch_btree_node_get() the read-in btree node will be partially
prefetched into L1 cache for following bset iteration (if there is).
But if the btree node read is failed, the perfetch operations will
waste L1 cache space. This patch checkes whether read operation and
only does cache prefetch when read I/O succeeded.
Signed-off-by: Coly Li <colyli@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'Kbuild')
0 files changed, 0 insertions, 0 deletions