Skip to content

Commit a4027a2

Browse files
Byongho Leemasoncl
authored andcommitted
Btrfs: remove unused mutex from struct 'btrfs_fs_info'
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 <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: Chris Mason <[email protected]>
1 parent 4a77089 commit a4027a2

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

fs/btrfs/ctree.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1518,12 +1518,6 @@ struct btrfs_fs_info {
15181518
*/
15191519
struct mutex ordered_operations_mutex;
15201520

1521-
/*
1522-
* Same as ordered_operations_mutex except this is for ordered extents
1523-
* and not the operations.
1524-
*/
1525-
struct mutex ordered_extent_flush_mutex;
1526-
15271521
struct rw_semaphore commit_root_sem;
15281522

15291523
struct rw_semaphore cleanup_work_sem;

fs/btrfs/disk-io.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2608,7 +2608,6 @@ int open_ctree(struct super_block *sb,
26082608

26092609

26102610
mutex_init(&fs_info->ordered_operations_mutex);
2611-
mutex_init(&fs_info->ordered_extent_flush_mutex);
26122611
mutex_init(&fs_info->tree_log_mutex);
26132612
mutex_init(&fs_info->chunk_mutex);
26142613
mutex_init(&fs_info->transaction_kthread_mutex);

0 commit comments

Comments
 (0)