Skip to content

Commit

Permalink
Btrfs: remove unused mutex from struct 'btrfs_fs_info'
Browse files Browse the repository at this point in the history
The code using 'ordered_extent_flush_mutex' mutex has removed by below
commit.
 - 8d875f9
   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>
  • Loading branch information
Byongho Lee authored and Chris Mason committed Aug 9, 2015
1 parent 4a77089 commit a4027a2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
6 changes: 0 additions & 6 deletions fs/btrfs/ctree.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion fs/btrfs/disk-io.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a4027a2

Please sign in to comment.