mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-27 09:02:06 +00:00
mm: remove unused arg of set_page_dirty_balance()
There's only one caller of set_page_dirty_balance() and that will call it
with page_mkwrite == 0.
The page_mkwrite argument was unused since commit b827e496c8
"mm: close
page_mkwrite races".
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
57e68e9cd6
commit
ed6d7c8e57
3 changed files with 4 additions and 4 deletions
|
@ -178,7 +178,7 @@ int write_cache_pages(struct address_space *mapping,
|
||||||
struct writeback_control *wbc, writepage_t writepage,
|
struct writeback_control *wbc, writepage_t writepage,
|
||||||
void *data);
|
void *data);
|
||||||
int do_writepages(struct address_space *mapping, struct writeback_control *wbc);
|
int do_writepages(struct address_space *mapping, struct writeback_control *wbc);
|
||||||
void set_page_dirty_balance(struct page *page, int page_mkwrite);
|
void set_page_dirty_balance(struct page *page);
|
||||||
void writeback_set_ratelimit(void);
|
void writeback_set_ratelimit(void);
|
||||||
void tag_pages_for_writeback(struct address_space *mapping,
|
void tag_pages_for_writeback(struct address_space *mapping,
|
||||||
pgoff_t start, pgoff_t end);
|
pgoff_t start, pgoff_t end);
|
||||||
|
|
|
@ -2782,7 +2782,7 @@ reuse:
|
||||||
*/
|
*/
|
||||||
if (!page_mkwrite) {
|
if (!page_mkwrite) {
|
||||||
wait_on_page_locked(dirty_page);
|
wait_on_page_locked(dirty_page);
|
||||||
set_page_dirty_balance(dirty_page, page_mkwrite);
|
set_page_dirty_balance(dirty_page);
|
||||||
/* file_update_time outside page_lock */
|
/* file_update_time outside page_lock */
|
||||||
if (vma->vm_file)
|
if (vma->vm_file)
|
||||||
file_update_time(vma->vm_file);
|
file_update_time(vma->vm_file);
|
||||||
|
|
|
@ -1562,9 +1562,9 @@ pause:
|
||||||
bdi_start_background_writeback(bdi);
|
bdi_start_background_writeback(bdi);
|
||||||
}
|
}
|
||||||
|
|
||||||
void set_page_dirty_balance(struct page *page, int page_mkwrite)
|
void set_page_dirty_balance(struct page *page)
|
||||||
{
|
{
|
||||||
if (set_page_dirty(page) || page_mkwrite) {
|
if (set_page_dirty(page)) {
|
||||||
struct address_space *mapping = page_mapping(page);
|
struct address_space *mapping = page_mapping(page);
|
||||||
|
|
||||||
if (mapping)
|
if (mapping)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue