diff options
author | Chris Mason <chris.mason@oracle.com> | 2007-04-09 10:42:55 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@hera.kernel.org> | 2007-04-09 10:42:55 -0400 |
commit | 86c2d787286b888a7f45ee522310f773b8466917 (patch) | |
tree | 9c235434475c25dff72cf8ce284bf163c73a6f3b /ctree.h | |
parent | 8accdae27a678a47f021128121f2975e6fc25201 (diff) |
groundwork for subvolume and snapshot roots
Diffstat (limited to 'ctree.h')
-rw-r--r-- | ctree.h | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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); |