diff options
author | Li Zefan <lizefan@huawei.com> | 2012-07-09 22:21:07 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@fusionio.com> | 2012-07-23 16:28:05 -0400 |
commit | b4d7c3c9456a311a45bc1ef8944b5ba5b176244f (patch) | |
tree | 217aeddfbcd502d8b61400cc0d87603f03c836f6 /fs/btrfs/inode.c | |
parent | d5b025d510664382f9a197f7e7fb9fc60fe209bc (diff) |
Btrfs: kill free_space pointer from inode structure
Inodes always allocate free space with BTRFS_BLOCK_GROUP_DATA type,
which means every inode has the same BTRFS_I(inode)->free_space pointer.
This shrinks struct btrfs_inode by 4 bytes (or 8 bytes on 64 bits).
Signed-off-by: Li Zefan <lizefan@huawei.com>
Diffstat (limited to 'fs/btrfs/inode.c')
-rw-r--r-- | fs/btrfs/inode.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index 321c415dea7f..ee45ebf42192 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c | |||
@@ -4082,7 +4082,6 @@ static int btrfs_init_locked_inode(struct inode *inode, void *p) | |||
4082 | struct btrfs_iget_args *args = p; | 4082 | struct btrfs_iget_args *args = p; |
4083 | inode->i_ino = args->ino; | 4083 | inode->i_ino = args->ino; |
4084 | BTRFS_I(inode)->root = args->root; | 4084 | BTRFS_I(inode)->root = args->root; |
4085 | btrfs_set_inode_space_info(args->root, inode); | ||
4086 | return 0; | 4085 | return 0; |
4087 | } | 4086 | } |
4088 | 4087 | ||
@@ -4667,7 +4666,6 @@ static struct inode *btrfs_new_inode(struct btrfs_trans_handle *trans, | |||
4667 | BTRFS_I(inode)->root = root; | 4666 | BTRFS_I(inode)->root = root; |
4668 | BTRFS_I(inode)->generation = trans->transid; | 4667 | BTRFS_I(inode)->generation = trans->transid; |
4669 | inode->i_generation = BTRFS_I(inode)->generation; | 4668 | inode->i_generation = BTRFS_I(inode)->generation; |
4670 | btrfs_set_inode_space_info(root, inode); | ||
4671 | 4669 | ||
4672 | if (S_ISDIR(mode)) | 4670 | if (S_ISDIR(mode)) |
4673 | owner = 0; | 4671 | owner = 0; |
@@ -6944,7 +6942,6 @@ struct inode *btrfs_alloc_inode(struct super_block *sb) | |||
6944 | return NULL; | 6942 | return NULL; |
6945 | 6943 | ||
6946 | ei->root = NULL; | 6944 | ei->root = NULL; |
6947 | ei->space_info = NULL; | ||
6948 | ei->generation = 0; | 6945 | ei->generation = 0; |
6949 | ei->last_trans = 0; | 6946 | ei->last_trans = 0; |
6950 | ei->last_sub_trans = 0; | 6947 | ei->last_sub_trans = 0; |