summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBaolin Wang <baolin.wang@linux.alibaba.com>2025-02-07 17:44:18 +0800
committerAndrew Morton <akpm@linux-foundation.org>2025-03-17 00:05:41 -0700
commit6d26a149f5483acdc8a9a7a8fcf5e737a324a2b6 (patch)
tree9ed75c27ff5d3ae373c6a446207cd2f904b3bf1f
parentc0d017896b72d7dd251dabf64765196ff9a46a0f (diff)
downloadlinux-6d26a149f5483acdc8a9a7a8fcf5e737a324a2b6.tar.gz
linux-6d26a149f5483acdc8a9a7a8fcf5e737a324a2b6.zip
mm: shmem: remove 'fadvise()' comments
Similar to commit 255ff62d1586 ("docs: tmpfs: drop 'fadvise()' from the documentation"), fadvise() has no HUGEPAGE advise currently. Remove the confusing fadvise() comments. Link: https://lkml.kernel.org/r/fae702b9775f58b55b45be5eaad22d8586d0290a.1738918357.git.baolin.wang@linux.alibaba.com Signed-off-by: Baolin Wang <baolin.wang@linux.alibaba.com> Cc: David Hildenbrand <david@redhat.com> Cc: Hugh Dickins <hughd@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
-rw-r--r--mm/shmem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/shmem.c b/mm/shmem.c
index 6d6d5fce2120..c63fd18cea50 100644
--- a/mm/shmem.c
+++ b/mm/shmem.c
@@ -525,9 +525,9 @@ static bool shmem_confirm_swap(struct address_space *mapping,
* enables huge pages for the mount;
* SHMEM_HUGE_WITHIN_SIZE:
* only allocate huge pages if the page will be fully within i_size,
- * also respect fadvise()/madvise() hints;
+ * also respect madvise() hints;
* SHMEM_HUGE_ADVISE:
- * only allocate huge pages if requested with fadvise()/madvise();
+ * only allocate huge pages if requested with madvise();
*/
#define SHMEM_HUGE_NEVER 0