super.c (d0d3f1b329b01a9e16609eeadcc6d4fae0afc7c8) | super.c (846ae671ad368e344a2b141c0f19e1014b27a0dd) |
---|---|
1/* 2 * fs/f2fs/super.c 3 * 4 * Copyright (c) 2012 Samsung Electronics Co., Ltd. 5 * http://www.samsung.com/ 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License version 2 as --- 2208 unchanged lines hidden (view full) --- 2217 for (i = 0; i < NR_PAGE_TYPE - 1; i++) 2218 for (j = HOT; j < NR_TEMP_TYPE; j++) 2219 mutex_init(&sbi->wio_mutex[i][j]); 2220 spin_lock_init(&sbi->cp_lock); 2221 2222 sbi->dirty_device = 0; 2223 spin_lock_init(&sbi->dev_lock); 2224 | 1/* 2 * fs/f2fs/super.c 3 * 4 * Copyright (c) 2012 Samsung Electronics Co., Ltd. 5 * http://www.samsung.com/ 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License version 2 as --- 2208 unchanged lines hidden (view full) --- 2217 for (i = 0; i < NR_PAGE_TYPE - 1; i++) 2218 for (j = HOT; j < NR_TEMP_TYPE; j++) 2219 mutex_init(&sbi->wio_mutex[i][j]); 2220 spin_lock_init(&sbi->cp_lock); 2221 2222 sbi->dirty_device = 0; 2223 spin_lock_init(&sbi->dev_lock); 2224 |
2225 mutex_init(&sbi->sb_lock); | 2225 init_rwsem(&sbi->sb_lock); |
2226} 2227 2228static int init_percpu_info(struct f2fs_sb_info *sbi) 2229{ 2230 int err; 2231 2232 err = percpu_counter_init(&sbi->alloc_valid_block_count, 0, GFP_KERNEL); 2233 if (err) --- 802 unchanged lines hidden --- | 2226} 2227 2228static int init_percpu_info(struct f2fs_sb_info *sbi) 2229{ 2230 int err; 2231 2232 err = percpu_counter_init(&sbi->alloc_valid_block_count, 0, GFP_KERNEL); 2233 if (err) --- 802 unchanged lines hidden --- |