summaryrefslogtreecommitdiff
path: root/libbcachefs/io_misc.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2023-10-27 19:38:36 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-27 19:38:36 -0400
commitd320a4e927fd706b34c714b77130965a385ea4fb (patch)
treef993f8a9eb9bfe61c337ec98195907f10e3916f8 /libbcachefs/io_misc.c
parent8eaf8ddf45fbcd9900b561f2804f145f06417db5 (diff)
Update bcachefs sources to 6628827a8707 bcachefs: Skip deleted members in member_to_text()
Diffstat (limited to 'libbcachefs/io_misc.c')
-rw-r--r--libbcachefs/io_misc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libbcachefs/io_misc.c b/libbcachefs/io_misc.c
index 0979d5e0..bebc1144 100644
--- a/libbcachefs/io_misc.c
+++ b/libbcachefs/io_misc.c
@@ -23,7 +23,7 @@
int bch2_extent_fallocate(struct btree_trans *trans,
subvol_inum inum,
struct btree_iter *iter,
- unsigned sectors,
+ u64 sectors,
struct bch_io_opts opts,
s64 *i_sectors_delta,
struct write_point_specifier write_point)
@@ -105,7 +105,7 @@ int bch2_extent_fallocate(struct btree_trans *trans,
if (ret)
goto err;
- sectors = min(sectors, wp->sectors_free);
+ sectors = min_t(u64, sectors, wp->sectors_free);
sectors_allocated = sectors;
bch2_key_resize(&e->k, sectors);