summaryrefslogtreecommitdiff
path: root/ctree.h
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2007-04-09 10:42:55 -0400
committerDavid Woodhouse <dwmw2@hera.kernel.org>2007-04-09 10:42:55 -0400
commit86c2d787286b888a7f45ee522310f773b8466917 (patch)
tree9c235434475c25dff72cf8ce284bf163c73a6f3b /ctree.h
parent8accdae27a678a47f021128121f2975e6fc25201 (diff)
groundwork for subvolume and snapshot roots
Diffstat (limited to 'ctree.h')
-rw-r--r--ctree.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/ctree.h b/ctree.h
index 19e79270..4c752892 100644
--- a/ctree.h
+++ b/ctree.h
@@ -740,6 +740,17 @@ static inline void btrfs_set_super_blocknr(struct btrfs_super_block *s, u64 val)
s->blocknr = cpu_to_le64(val);
}
+static inline u64 btrfs_super_generation(struct btrfs_super_block *s)
+{
+ return le64_to_cpu(s->generation);
+}
+
+static inline void btrfs_set_super_generation(struct btrfs_super_block *s,
+ u64 val)
+{
+ s->generation = cpu_to_le64(val);
+}
+
static inline u64 btrfs_super_root(struct btrfs_super_block *s)
{
return le64_to_cpu(s->root);