]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: make lock_and_cleanup_extent_if_need nowait compatible
authorStefan Roesch <shr@fb.com>
Mon, 12 Sep 2022 19:27:48 +0000 (12:27 -0700)
committerDavid Sterba <dsterba@suse.com>
Thu, 29 Sep 2022 15:08:28 +0000 (17:08 +0200)
commit2fcab928ccc2bac0c22e3b3b04f5acf0dc8de96b
tree35728187a6114ba995bf624c036848abe9ad967f
parentfc2260001232766c1836d5a6053913194ce23f88
btrfs: make lock_and_cleanup_extent_if_need nowait compatible

Add the nowait parameter to lock_and_cleanup_extent_if_need(). If the
nowait parameter is specified we try to lock the extent in nowait mode.

Reviewed-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: Stefan Roesch <shr@fb.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/file.c