|
@@ -466,7 +466,7 @@ static void collect_procs_file(struct page *page, struct list_head *to_kill,
|
|
|
struct task_struct *tsk;
|
|
|
struct address_space *mapping = page->mapping;
|
|
|
|
|
|
- i_mmap_lock_write(mapping);
|
|
|
+ i_mmap_lock_read(mapping);
|
|
|
read_lock(&tasklist_lock);
|
|
|
for_each_process(tsk) {
|
|
|
pgoff_t pgoff = page_to_pgoff(page);
|
|
@@ -488,7 +488,7 @@ static void collect_procs_file(struct page *page, struct list_head *to_kill,
|
|
|
}
|
|
|
}
|
|
|
read_unlock(&tasklist_lock);
|
|
|
- i_mmap_unlock_write(mapping);
|
|
|
+ i_mmap_unlock_read(mapping);
|
|
|
}
|
|
|
|
|
|
/*
|