]> git.sesse.net Git - bcachefs-tools-debian/blobdiff - libbcachefs/fs-io.h
btree_write_buffer: ensure atomic64_sub_return_release availability
[bcachefs-tools-debian] / libbcachefs / fs-io.h
index c6704618c16ca6f70db077e6c8aa75f519863a2a..ca70346e68dc3d9196c85ce7768b1c9f53e6e792 100644 (file)
@@ -6,7 +6,7 @@
 
 #include "buckets.h"
 #include "fs.h"
-#include "io_types.h"
+#include "io_write_types.h"
 #include "quota.h"
 
 #include <linux/uio.h>
@@ -108,15 +108,15 @@ static inline int bch2_quota_reservation_add(struct bch_fs *c,
 
 #else
 
-static void __bch2_quota_reservation_put(struct bch_fs *c,
+static inline void __bch2_quota_reservation_put(struct bch_fs *c,
                                         struct bch_inode_info *inode,
                                         struct quota_res *res) {}
 
-static void bch2_quota_reservation_put(struct bch_fs *c,
+static inline void bch2_quota_reservation_put(struct bch_fs *c,
                                       struct bch_inode_info *inode,
                                       struct quota_res *res) {}
 
-static int bch2_quota_reservation_add(struct bch_fs *c,
+static inline int bch2_quota_reservation_add(struct bch_fs *c,
                                      struct bch_inode_info *inode,
                                      struct quota_res *res,
                                      unsigned sectors,
@@ -165,7 +165,7 @@ int __must_check bch2_write_inode_size(struct bch_fs *,
 
 int bch2_fsync(struct file *, loff_t, loff_t, int);
 
-int bch2_truncate(struct mnt_idmap *,
+int bchfs_truncate(struct mnt_idmap *,
                  struct bch_inode_info *, struct iattr *);
 long bch2_fallocate_dispatch(struct file *, int, loff_t, loff_t);