Btrfs: remove unused mutex from struct 'btrfs_fs_info'
authorByongho Lee <bhlee.kernel@gmail.com>
Fri, 10 Jul 2015 04:10:26 +0000 (13:10 +0900)
committerChris Mason <clm@fb.com>
Sun, 9 Aug 2015 14:34:27 +0000 (07:34 -0700)
The code using 'ordered_extent_flush_mutex' mutex has removed by below
commit.
 - 8d875f95da43c6a8f18f77869f2ef26e9594fecc
   btrfs: disable strict file flushes for renames and truncates
But the mutex still lives in struct 'btrfs_fs_info'.

So, this patch removes the mutex from struct 'btrfs_fs_info' and its
initialization code.

Signed-off-by: Byongho Lee <bhlee.kernel@gmail.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/ctree.h
fs/btrfs/disk-io.c

index f335c18bd263fcd91e21f3c52283f28e21c868f1..d4042c89d29bb74a5fc93a68ed2ad08cb4bf997a 100644 (file)
@@ -1518,12 +1518,6 @@ struct btrfs_fs_info {
         */
        struct mutex ordered_operations_mutex;
 
-       /*
-        * Same as ordered_operations_mutex except this is for ordered extents
-        * and not the operations.
-        */
-       struct mutex ordered_extent_flush_mutex;
-
        struct rw_semaphore commit_root_sem;
 
        struct rw_semaphore cleanup_work_sem;
index e49ae5ea904036de3e13cc429205f947980c30b2..f7536bcf7ceec893c7ed9a3fcfe70752e9aedecf 100644 (file)
@@ -2608,7 +2608,6 @@ int open_ctree(struct super_block *sb,
 
 
        mutex_init(&fs_info->ordered_operations_mutex);
-       mutex_init(&fs_info->ordered_extent_flush_mutex);
        mutex_init(&fs_info->tree_log_mutex);
        mutex_init(&fs_info->chunk_mutex);
        mutex_init(&fs_info->transaction_kthread_mutex);