OSDN Git Service

Btrfs: fix race between balance and unused block group deletion
[uclinux-h8/linux.git] / fs / btrfs / ctree.h
index 80a9aef..aac314e 100644 (file)
@@ -1778,6 +1778,7 @@ struct btrfs_fs_info {
        spinlock_t unused_bgs_lock;
        struct list_head unused_bgs;
        struct mutex unused_bg_unpin_mutex;
+       struct mutex delete_unused_bgs_mutex;
 
        /* For btrfs to record security options */
        struct security_mnt_opts security_opts;