summaryrefslogtreecommitdiff
path: root/ctree.h
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2007-04-30 15:25:49 -0400
committerDavid Woodhouse <dwmw2@hera.kernel.org>2007-04-30 15:25:49 -0400
commit007e5efb9b5e1d3ce14d5ec162910c249351a56d (patch)
tree20682a89b1b5b7feece38b074a4d206032e6e546 /ctree.h
parent5856b7e1241b07a5d461ff1592562c8520c42d93 (diff)
allocator improvements, inode block groups
Diffstat (limited to 'ctree.h')
-rw-r--r--ctree.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/ctree.h b/ctree.h
index efd044a2..c3f8c525 100644
--- a/ctree.h
+++ b/ctree.h
@@ -167,6 +167,7 @@ struct btrfs_inode_item {
__le64 generation;
__le64 size;
__le64 nblocks;
+ __le64 block_group;
__le32 nlink;
__le32 uid;
__le32 gid;
@@ -392,6 +393,17 @@ static inline void btrfs_set_inode_nblocks(struct btrfs_inode_item *i, u64 val)
i->nblocks = cpu_to_le64(val);
}
+static inline u64 btrfs_inode_block_group(struct btrfs_inode_item *i)
+{
+ return le64_to_cpu(i->block_group);
+}
+
+static inline void btrfs_set_inode_block_group(struct btrfs_inode_item *i,
+ u64 val)
+{
+ i->block_group = cpu_to_le64(val);
+}
+
static inline u32 btrfs_inode_nlink(struct btrfs_inode_item *i)
{
return le32_to_cpu(i->nlink);