summaryrefslogtreecommitdiff
path: root/fs/bcachefs/bcachefs_format.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2024-01-21 07:35:41 +0300
committerKent Overstreet <kent.overstreet@linux.dev>2024-01-21 21:27:10 +0300
commitd32088f2f2f0f361caeb87dfc71b632231fd6c7b (patch)
tree51348b251d0f5a7e6032996eea43ee6576318a8f /fs/bcachefs/bcachefs_format.h
parent7be0208fc99207e86974f40a3b57949dae67976c (diff)
downloadlinux-d32088f2f2f0f361caeb87dfc71b632231fd6c7b.tar.xz
bcachefs: bch_snapshot::btime
Add a field to bch_snapshot for creation time; this will be important when we start exposing the snapshot tree to userspace. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/bcachefs_format.h')
-rw-r--r--fs/bcachefs/bcachefs_format.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/bcachefs/bcachefs_format.h b/fs/bcachefs/bcachefs_format.h
index 0d5ac4184fbc..a76036179238 100644
--- a/fs/bcachefs/bcachefs_format.h
+++ b/fs/bcachefs/bcachefs_format.h
@@ -1149,6 +1149,7 @@ struct bch_snapshot {
__le32 tree;
__le32 depth;
__le32 skip[3];
+ bch_le128 btime;
};
LE32_BITMASK(BCH_SNAPSHOT_DELETED, struct bch_snapshot, flags, 0, 1)