diff options
author | Mike Kravetz <mike.kravetz@oracle.com> | 2021-02-24 21:09:58 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2021-02-24 22:38:35 +0100 |
commit | a4fa34cdcd18296c097e2648fe894d28c5cf9709 (patch) | |
tree | 5020e5bf36fd1101663e3726ee9d21c1e00af2c2 /fs/proc/namespaces.c | |
parent | mm/hugetlb: change hugetlb_reserve_pages() to type bool (diff) | |
download | linux-a4fa34cdcd18296c097e2648fe894d28c5cf9709.tar.xz linux-a4fa34cdcd18296c097e2648fe894d28c5cf9709.zip |
hugetlbfs: remove special hugetlbfs_set_page_dirty()
Matthew Wilcox noticed that hugetlbfs_set_page_dirty always returns 0.
Instead, it should return 1 or 0 depending on the previous state of the
dirty bit. In addition, the call to compound_head is redundant as it is
also performed in calling routine set_page_dirty.
Replace the hugetlbfs specific routine hugetlbfs_set_page_dirty with
__set_page_dirty_no_writeback as it addresses both of these issues.
Link: https://lkml.kernel.org/r/20201221192542.15732-2-mike.kravetz@oracle.com
Signed-off-by: Mike Kravetz <mike.kravetz@oracle.com>
Suggested-by: Matthew Wilcox <willy@infradead.org>
Cc: Dan Carpenter <dan.carpenter@oracle.com>
Cc: David Hildenbrand <david@redhat.com>
Cc: Davidlohr Bueso <dave@stgolabs.net>
Cc: Michal Hocko <mhocko@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/proc/namespaces.c')
0 files changed, 0 insertions, 0 deletions