Skip to content

Commit 089842d

Browse files
Yunlong SongJaegeuk Kim
authored andcommitted
f2fs: remove codes of unused wio_mutex
Signed-off-by: Yunlong Song <yunlong.song@huawei.com> Reviewed-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
1 parent d6c66cd commit 089842d

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

fs/f2fs/f2fs.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1170,7 +1170,6 @@ struct f2fs_sb_info {
11701170

11711171
/* for bio operations */
11721172
struct f2fs_bio_info *write_io[NR_PAGE_TYPE]; /* for write bios */
1173-
struct mutex wio_mutex[NR_PAGE_TYPE - 1][NR_TEMP_TYPE];
11741173
/* bio ordering for NODE/DATA */
11751174
/* keep migration IO order for LFS mode */
11761175
struct rw_semaphore io_order_lock;

fs/f2fs/super.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2674,7 +2674,7 @@ int f2fs_sanity_check_ckpt(struct f2fs_sb_info *sbi)
26742674
static void init_sb_info(struct f2fs_sb_info *sbi)
26752675
{
26762676
struct f2fs_super_block *raw_super = sbi->raw_super;
2677-
int i, j;
2677+
int i;
26782678

26792679
sbi->log_sectors_per_block =
26802680
le32_to_cpu(raw_super->log_sectors_per_block);
@@ -2710,9 +2710,6 @@ static void init_sb_info(struct f2fs_sb_info *sbi)
27102710

27112711
INIT_LIST_HEAD(&sbi->s_list);
27122712
mutex_init(&sbi->umount_mutex);
2713-
for (i = 0; i < NR_PAGE_TYPE - 1; i++)
2714-
for (j = HOT; j < NR_TEMP_TYPE; j++)
2715-
mutex_init(&sbi->wio_mutex[i][j]);
27162713
init_rwsem(&sbi->io_order_lock);
27172714
spin_lock_init(&sbi->cp_lock);
27182715

0 commit comments

Comments
 (0)