]> git.baikalelectronics.ru Git - kernel.git/commit
mm/filemap: remove unused parameter and change to void type for replace_page_cache_page()
authorBaolin Wang <baolin.wang@linux.alibaba.com>
Wed, 24 Feb 2021 20:01:42 +0000 (12:01 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 24 Feb 2021 21:38:27 +0000 (13:38 -0800)
commit13b023f4c2617356a8b519ac89f3d2251d897c1c
treebcca61681e0101aee19fcd73282190de341d2e88
parentbf45ad9cbab558dea9461c1e471e72de72eb8e68
mm/filemap: remove unused parameter and change to void type for replace_page_cache_page()

Since commit 7f62535e367f ("page cache: Add and replace pages using the
XArray") was merged, the replace_page_cache_page() can not fail and always
return 0, we can remove the redundant return value and void it.  Moreover
remove the unused gfp_mask.

Link: https://lkml.kernel.org/r/609c30e5274ba15d8b90c872fd0d8ac437a9b2bb.1610071401.git.baolin.wang@linux.alibaba.com
Signed-off-by: Baolin Wang <baolin.wang@linux.alibaba.com>
Cc: Matthew Wilcox <willy@infradead.org>
Cc: Miklos Szeredi <miklos@szeredi.hu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/fuse/dev.c
include/linux/pagemap.h
mm/filemap.c