Skip to content

Commit ed6d7c8

Browse files
Miklos Szereditorvalds
authored andcommitted
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 b827e49 "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>
1 parent 57e68e9 commit ed6d7c8

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎include/linux/writeback.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ int write_cache_pages(struct address_space *mapping,
178178
struct writeback_control *wbc, writepage_t writepage,
179179
void *data);
180180
int do_writepages(struct address_space *mapping, struct writeback_control *wbc);
181-
void set_page_dirty_balance(struct page *page, int page_mkwrite);
181+
void set_page_dirty_balance(struct page *page);
182182
void writeback_set_ratelimit(void);
183183
void tag_pages_for_writeback(struct address_space *mapping,
184184
pgoff_t start, pgoff_t end);

‎mm/memory.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2782,7 +2782,7 @@ static int do_wp_page(struct mm_struct *mm, struct vm_area_struct *vma,
27822782
*/
27832783
if (!page_mkwrite) {
27842784
wait_on_page_locked(dirty_page);
2785-
set_page_dirty_balance(dirty_page, page_mkwrite);
2785+
set_page_dirty_balance(dirty_page);
27862786
/* file_update_time outside page_lock */
27872787
if (vma->vm_file)
27882788
file_update_time(vma->vm_file);

‎mm/page-writeback.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1562,9 +1562,9 @@ static void balance_dirty_pages(struct address_space *mapping,
15621562
bdi_start_background_writeback(bdi);
15631563
}
15641564

1565-
void set_page_dirty_balance(struct page *page, int page_mkwrite)
1565+
void set_page_dirty_balance(struct page *page)
15661566
{
1567-
if (set_page_dirty(page) || page_mkwrite) {
1567+
if (set_page_dirty(page)) {
15681568
struct address_space *mapping = page_mapping(page);
15691569

15701570
if (mapping)

0 commit comments

Comments
 (0)