]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - fs/btrfs/btrfs_inode.h
Btrfs: fix leaking block group on balance
[mv-sheeva.git] / fs / btrfs / btrfs_inode.h
index 1b9ec1ab1f685b43933b038d5fdfeb06aa2c8f6b..a8c9693b75ac42e939edaede65a29a31244d66c8 100644 (file)
@@ -28,11 +28,6 @@ struct btrfs_inode {
        /* which subvolume this inode belongs to */
        struct btrfs_root *root;
 
-       /* the block group preferred for allocations.  This pointer is buggy
-        * and needs to be replaced with a bytenr instead
-        */
-       struct btrfs_block_group_cache *block_group;
-
        /* key used to find this inode on disk.  This is used by the code
         * to read in roots of subvolumes
         */
@@ -115,6 +110,9 @@ struct btrfs_inode {
         */
        u64 index_cnt;
 
+       /* the start of block group preferred for allocations. */
+       u64 block_group;
+
        struct inode vfs_inode;
 };