summaryrefslogtreecommitdiff
path: root/libbcachefs/fs.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2017-10-05 14:41:44 -0800
committerKent Overstreet <kent.overstreet@gmail.com>2017-10-08 10:25:33 -0800
commit85ee972555948337bb1a58f0702a4da95db6758f (patch)
tree34f13bce6d9ad221593a45d3ee3b489b777cba04 /libbcachefs/fs.h
parente7c2bb91bce30a987c8c4e2875f2c63e887d3aa5 (diff)
Update bcachefs sources to e82e656279 bcachefs: Cleanups for building in userspace
Diffstat (limited to 'libbcachefs/fs.h')
-rw-r--r--libbcachefs/fs.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/libbcachefs/fs.h b/libbcachefs/fs.h
index 38a349d0..5f2c39f0 100644
--- a/libbcachefs/fs.h
+++ b/libbcachefs/fs.h
@@ -1,5 +1,5 @@
-#ifndef _BCACHE_FS_H
-#define _BCACHE_FS_H
+#ifndef _BCACHEFS_FS_H
+#define _BCACHEFS_FS_H
#include "str_hash.h"
@@ -25,6 +25,8 @@ struct bch_inode_info {
atomic64_t i_sectors;
struct bch_hash_info str_hash;
+
+ unsigned long last_dirtied;
};
#define to_bch_ei(_inode) \
@@ -42,7 +44,7 @@ static inline unsigned nlink_bias(umode_t mode)
struct bch_inode_unpacked;
-#ifndef NO_BCACHE_FS
+#ifndef NO_BCACHEFS_FS
/* returns 0 if we want to do the update, or error is passed up */
typedef int (*inode_set_fn)(struct bch_inode_info *,
@@ -61,6 +63,6 @@ int bch2_vfs_init(void);
static inline void bch2_vfs_exit(void) {}
static inline int bch2_vfs_init(void) { return 0; }
-#endif
+#endif /* NO_BCACHEFS_FS */
-#endif /* _BCACHE_FS_H */
+#endif /* _BCACHEFS_FS_H */