btrfs: qgroup: Cleanup the remaining old reservation counters
authorQu Wenruo <wqu@suse.com>
Tue, 12 Dec 2017 07:34:28 +0000 (15:34 +0800)
committerDavid Sterba <dsterba@suse.com>
Fri, 30 Mar 2018 23:41:13 +0000 (01:41 +0200)
So qgroup is switched to new separate types reservation system.

Signed-off-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/qgroup.c
fs/btrfs/qgroup.h

index 8ec103deb3619f635ecbd6233282f0465c0b6273..c0deebfecd93aabe93cda51eb6c565b2d930d34a 100644 (file)
@@ -1070,19 +1070,6 @@ static void qgroup_dirty(struct btrfs_fs_info *fs_info,
                list_add(&qgroup->dirty, &fs_info->dirty_qgroups);
 }
 
-static void report_reserved_underflow(struct btrfs_fs_info *fs_info,
-                                     struct btrfs_qgroup *qgroup,
-                                     u64 num_bytes)
-{
-#ifdef CONFIG_BTRFS_DEBUG
-       WARN_ON(qgroup->reserved < num_bytes);
-       btrfs_debug(fs_info,
-               "qgroup %llu reserved space underflow, have: %llu, to free: %llu",
-               qgroup->qgroupid, qgroup->reserved, num_bytes);
-#endif
-       qgroup->reserved = 0;
-}
-
 /*
  * The easy accounting, we're updating qgroup relationship whose child qgroup
  * only has exclusive extents.
index b5ee229b3ef1bf0c45213063e6daa9ae1926b740..279e71a21695c8c6962926db2a1e54582d708e78 100644 (file)
@@ -107,7 +107,6 @@ struct btrfs_qgroup {
        /*
         * reservation tracking
         */
-       u64 reserved;
        struct btrfs_qgroup_rsv rsv;
 
        /*