Skip to content

Commit f08dc36

Browse files
committed
btrfs: sink gfp parameter to clear_extent_uptodate
There's only one callsite with GFP_NOFS. Signed-off-by: David Sterba <dsterba@suse.com>
1 parent ae0f162 commit f08dc36

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

fs/btrfs/extent_io.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,10 +342,10 @@ static inline int set_extent_bits(struct extent_io_tree *tree, u64 start,
342342
}
343343

344344
static inline int clear_extent_uptodate(struct extent_io_tree *tree, u64 start,
345-
u64 end, struct extent_state **cached_state, gfp_t mask)
345+
u64 end, struct extent_state **cached_state)
346346
{
347347
return __clear_extent_bit(tree, start, end, EXTENT_UPTODATE, 0, 0,
348-
cached_state, mask, NULL);
348+
cached_state, GFP_NOFS, NULL);
349349
}
350350

351351
static inline int set_extent_dirty(struct extent_io_tree *tree, u64 start,

fs/btrfs/inode.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3084,7 +3084,7 @@ static int btrfs_finish_ordered_io(struct btrfs_ordered_extent *ordered_extent)
30843084
else
30853085
start = ordered_extent->file_offset;
30863086
end = ordered_extent->file_offset + ordered_extent->len - 1;
3087-
clear_extent_uptodate(io_tree, start, end, NULL, GFP_NOFS);
3087+
clear_extent_uptodate(io_tree, start, end, NULL);
30883088

30893089
/* Drop the cache for the part of the extent we didn't write. */
30903090
btrfs_drop_extent_cache(BTRFS_I(inode), start, end, 0);

0 commit comments

Comments
 (0)