summaryrefslogtreecommitdiff
path: root/c_src/posix_to_bcachefs.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2025-01-26 22:06:30 -0500
committerKent Overstreet <kent.overstreet@linux.dev>2025-02-03 14:08:49 -0500
commit8361ae1a4222fac64cb136333b8a176f4e868259 (patch)
tree652252ec44c70a13ee70108a94d60deb4a0e9bfc /c_src/posix_to_bcachefs.c
parent895fc9a101e5145d886fa000791f259589db30d7 (diff)
Update bcachefs sources to 63bbe0ca4167 bcachefs: Scrub
Diffstat (limited to 'c_src/posix_to_bcachefs.c')
-rw-r--r--c_src/posix_to_bcachefs.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/c_src/posix_to_bcachefs.c b/c_src/posix_to_bcachefs.c
index d4701263..9a681f7b 100644
--- a/c_src/posix_to_bcachefs.c
+++ b/c_src/posix_to_bcachefs.c
@@ -1,5 +1,6 @@
#include <dirent.h>
#include <sys/xattr.h>
+#include <linux/dcache.h>
#include <linux/xattr.h>
#include "posix_to_bcachefs.h"
@@ -158,7 +159,7 @@ static void write_data(struct bch_fs *c,
op.nr_replicas = 1;
op.subvol = 1;
op.pos = SPOS(dst_inode->bi_inum, dst_offset >> 9, U32_MAX);
- op.flags |= BCH_WRITE_SYNC;
+ op.flags |= BCH_WRITE_sync;
int ret = bch2_disk_reservation_get(c, &op.res, len >> 9,
c->opts.data_replicas, 0);
@@ -167,7 +168,7 @@ static void write_data(struct bch_fs *c,
closure_call(&op.cl, bch2_write, NULL, NULL);
- BUG_ON(!(op.flags & BCH_WRITE_SUBMITTED));
+ BUG_ON(!(op.flags & BCH_WRITE_submitted));
dst_inode->bi_sectors += len >> 9;
if (op.error)