summaryrefslogtreecommitdiff
path: root/libbcachefs/fs-io.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2024-01-05 12:38:14 -0500
committerKent Overstreet <kent.overstreet@linux.dev>2024-01-05 13:01:34 -0500
commit799439a88ab7afe99e5052894c20ea77133a1551 (patch)
treea9c5a0bd777e2e0d616bcbf44d8b1f3ef0d4ae1a /libbcachefs/fs-io.c
parent605e2311d9cfbc1acc7ba9181a05b8976d42ea46 (diff)
Update bcachefs sources to d267e10a43b2 bcachefs: __bch2_sb_field_to_text()
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'libbcachefs/fs-io.c')
-rw-r--r--libbcachefs/fs-io.c10
1 files changed, 10 insertions, 0 deletions
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;