diff options
author | Josef Bacik <josef@toxicpanda.com> | 2022-09-10 00:53:20 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2022-09-26 13:28:03 +0300 |
commit | c45379a20fbcbbd166966711cf9481ecb41b8271 (patch) | |
tree | bd4d5310d35d3fa4c1f0b044200e73c4c86e1594 /fs/btrfs/extent_io.c | |
parent | a40246e8afc0af3ffdee21854fb755c9364b8346 (diff) | |
download | linux-c45379a20fbcbbd166966711cf9481ecb41b8271.tar.xz |
btrfs: temporarily export alloc_extent_state helpers
We're going to move this code in stages, but while we're doing that we
need to export these helpers so we can more easily move the code into
the new file.
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/extent_io.c')
-rw-r--r-- | fs/btrfs/extent_io.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c index cf57696d6a89..3c630942253c 100644 --- a/fs/btrfs/extent_io.c +++ b/fs/btrfs/extent_io.c @@ -339,7 +339,7 @@ void extent_io_tree_release(struct extent_io_tree *tree) spin_unlock(&tree->lock); } -static struct extent_state *alloc_extent_state(gfp_t mask) +struct extent_state *alloc_extent_state(gfp_t mask) { struct extent_state *state; @@ -710,8 +710,7 @@ static struct extent_state *clear_state_bit(struct extent_io_tree *tree, return next; } -static struct extent_state * -alloc_extent_state_atomic(struct extent_state *prealloc) +struct extent_state *alloc_extent_state_atomic(struct extent_state *prealloc) { if (!prealloc) prealloc = alloc_extent_state(GFP_ATOMIC); |