btrfs: add helper to clear EXTENT_BUFFER_READING
authorTavian Barnes <tavianator@tavianator.com>
Mon, 18 Mar 2024 13:56:53 +0000 (09:56 -0400)
committerDavid Sterba <dsterba@suse.com>
Tue, 7 May 2024 19:31:00 +0000 (21:31 +0200)
commit1e2d1837091bf70f204802bcac48495358e75673
tree25225cf7890de8cfe854e065aa3e60e8527609e2
parentc79f57eafc5e01190fa05f2de8cbd5f579d68acd
btrfs: add helper to clear EXTENT_BUFFER_READING

We are clearing the bit and waking up any waiters in two different
places.  Factor that code out into a static helper function.

Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Tavian Barnes <tavianator@tavianator.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent_io.c