summaryrefslogtreecommitdiffstats
path: root/fs/pipe.c
diff options
context:
space:
mode:
authorJohn Hubbard <jhubbard@nvidia.com>2021-09-02 14:53:51 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2021-09-03 09:58:11 -0700
commit54d516b1d62ff8f17cee2da06e5e4706a0d00b8a (patch)
tree6e48db6d78f717ec959dbdf9009ffd313a042a89 /fs/pipe.c
parent3967db22ba324939762f618f0d654b13317ca7a4 (diff)
downloadlinux-stable-54d516b1d62ff8f17cee2da06e5e4706a0d00b8a.tar.gz
linux-stable-54d516b1d62ff8f17cee2da06e5e4706a0d00b8a.tar.bz2
linux-stable-54d516b1d62ff8f17cee2da06e5e4706a0d00b8a.zip
mm/gup: small refactoring: simplify try_grab_page()
try_grab_page() does the same thing as try_grab_compound_head(..., refs=1, ...), just with a different API. So there is a lot of code duplication there. Change try_grab_page() to call try_grab_compound_head(), while keeping the API contract identical for callers. Also, now that try_grab_compound_head() always has a caller, remove the __maybe_unused annotation. Link: https://lkml.kernel.org/r/20210813044133.1536842-3-jhubbard@nvidia.com Signed-off-by: John Hubbard <jhubbard@nvidia.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Cc: Matthew Wilcox <willy@infradead.org> Cc: Christian Borntraeger <borntraeger@de.ibm.com> Cc: Heiko Carstens <hca@linux.ibm.com> Cc: Vasily Gorbik <gor@linux.ibm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/pipe.c')
0 files changed, 0 insertions, 0 deletions