]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: Mark pinned log extents as excluded
authorNikolay Borisov <nborisov@suse.com>
Mon, 20 Jan 2020 14:09:16 +0000 (16:09 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 23 Mar 2020 16:01:37 +0000 (17:01 +0100)
commit0f69e19661f435967a656a5ed1b2a431a14bfab0
tree4258a40518773d9407343cba43e50bc254c25f91
parent397993e7fabe19fe2fdb5b6feac6b255b6e4ecb7
btrfs: Mark pinned log extents as excluded

In preparation to making pinned extents per-transaction ensure that log
such extents are always excluded from caching. To achieve this in
addition to marking them via btrfs_pin_extent_for_log_replay they also
need to be marked with btrfs_add_excluded_extent to prevent log tree
extent buffer being loaded by the free space caching thread. That's
required since log tree blocks are not recorded in the extent tree, hence
they always look free.

Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent-tree.c