diff options
Diffstat (limited to 'mm/backing-dev.c')
-rw-r--r-- | mm/backing-dev.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mm/backing-dev.c b/mm/backing-dev.c index 0e8ca0347707..8a0d9aa7b207 100644 --- a/mm/backing-dev.c +++ b/mm/backing-dev.c | |||
@@ -71,7 +71,7 @@ static int bdi_debug_stats_show(struct seq_file *m, void *v) | |||
71 | * RCU on the reader side | 71 | * RCU on the reader side |
72 | */ | 72 | */ |
73 | nr_wb = nr_dirty = nr_io = nr_more_io = 0; | 73 | nr_wb = nr_dirty = nr_io = nr_more_io = 0; |
74 | spin_lock(&inode_lock); | 74 | spin_lock(&wb_inode_list_lock); |
75 | list_for_each_entry(wb, &bdi->wb_list, list) { | 75 | list_for_each_entry(wb, &bdi->wb_list, list) { |
76 | nr_wb++; | 76 | nr_wb++; |
77 | list_for_each_entry(inode, &wb->b_dirty, i_list) | 77 | list_for_each_entry(inode, &wb->b_dirty, i_list) |
@@ -81,7 +81,7 @@ static int bdi_debug_stats_show(struct seq_file *m, void *v) | |||
81 | list_for_each_entry(inode, &wb->b_more_io, i_list) | 81 | list_for_each_entry(inode, &wb->b_more_io, i_list) |
82 | nr_more_io++; | 82 | nr_more_io++; |
83 | } | 83 | } |
84 | spin_unlock(&inode_lock); | 84 | spin_unlock(&wb_inode_list_lock); |
85 | 85 | ||
86 | get_dirty_limits(&background_thresh, &dirty_thresh, &bdi_thresh, bdi); | 86 | get_dirty_limits(&background_thresh, &dirty_thresh, &bdi_thresh, bdi); |
87 | 87 | ||
@@ -696,11 +696,11 @@ void bdi_destroy(struct backing_dev_info *bdi) | |||
696 | if (bdi_has_dirty_io(bdi)) { | 696 | if (bdi_has_dirty_io(bdi)) { |
697 | struct bdi_writeback *dst = &default_backing_dev_info.wb; | 697 | struct bdi_writeback *dst = &default_backing_dev_info.wb; |
698 | 698 | ||
699 | spin_lock(&inode_lock); | 699 | spin_lock(&wb_inode_list_lock); |
700 | list_splice(&bdi->wb.b_dirty, &dst->b_dirty); | 700 | list_splice(&bdi->wb.b_dirty, &dst->b_dirty); |
701 | list_splice(&bdi->wb.b_io, &dst->b_io); | 701 | list_splice(&bdi->wb.b_io, &dst->b_io); |
702 | list_splice(&bdi->wb.b_more_io, &dst->b_more_io); | 702 | list_splice(&bdi->wb.b_more_io, &dst->b_more_io); |
703 | spin_unlock(&inode_lock); | 703 | spin_unlock(&wb_inode_list_lock); |
704 | } | 704 | } |
705 | 705 | ||
706 | bdi_unregister(bdi); | 706 | bdi_unregister(bdi); |