summaryrefslogtreecommitdiff
path: root/libbcachefs/fs.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2018-08-15 19:41:24 -0400
committerKent Overstreet <kent.overstreet@gmail.com>2018-08-15 20:00:21 -0400
commitcef2f30ae2a25df41704b9b06fc13882d737cc27 (patch)
tree245f69c300067dc638eff7c6bc5bbc545fdf81f1 /libbcachefs/fs.h
parent9c62b2b4f11374cbffe88e0c31b9b1ab32a2863a (diff)
Update bcachefs sources to 15f6e66e86 bcachefs: pass around bset_tree less
Diffstat (limited to 'libbcachefs/fs.h')
-rw-r--r--libbcachefs/fs.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/libbcachefs/fs.h b/libbcachefs/fs.h
index e2fc2706..a434c757 100644
--- a/libbcachefs/fs.h
+++ b/libbcachefs/fs.h
@@ -1,6 +1,7 @@
#ifndef _BCACHEFS_FS_H
#define _BCACHEFS_FS_H
+#include "inode.h"
#include "opts.h"
#include "str_hash.h"
#include "quota_types.h"
@@ -43,6 +44,11 @@ static inline unsigned nlink_bias(umode_t mode)
return S_ISDIR(mode) ? 2 : 1;
}
+static inline u64 bch2_current_time(struct bch_fs *c)
+{
+ return timespec_to_bch2_time(c, current_kernel_time64());
+}
+
struct bch_inode_unpacked;
#ifndef NO_BCACHEFS_FS
@@ -59,10 +65,8 @@ int __must_check bch2_write_inode_trans(struct btree_trans *,
struct bch_inode_info *,
struct bch_inode_unpacked *,
inode_set_fn, void *);
-int __must_check __bch2_write_inode(struct bch_fs *, struct bch_inode_info *,
- inode_set_fn, void *, unsigned);
-int __must_check bch2_write_inode(struct bch_fs *,
- struct bch_inode_info *);
+int __must_check bch2_write_inode(struct bch_fs *, struct bch_inode_info *,
+ inode_set_fn, void *, unsigned);
void bch2_vfs_exit(void);
int bch2_vfs_init(void);