From 799439a88ab7afe99e5052894c20ea77133a1551 Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Fri, 5 Jan 2024 12:38:14 -0500 Subject: Update bcachefs sources to d267e10a43b2 bcachefs: __bch2_sb_field_to_text() Signed-off-by: Kent Overstreet --- libbcachefs/fs-io.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'libbcachefs/fs-io.c') diff --git a/libbcachefs/fs-io.c b/libbcachefs/fs-io.c index 98bd5bab..9fea8976 100644 --- a/libbcachefs/fs-io.c +++ b/libbcachefs/fs-io.c @@ -194,6 +194,16 @@ int bch2_fsync(struct file *file, loff_t start, loff_t end, int datasync) struct bch_fs *c = inode->v.i_sb->s_fs_info; int ret; + /* + * check if unlinked, disable/defer until relink + */ + + /* + * also: add a mode where a file is a tmpfile until fully, + * asynchronously written + */ + + ret = file_write_and_wait_range(file, start, end); if (ret) goto out; -- cgit v1.2.3