OSDN Git Service

ceph: drop pinned_page parameter from ceph_get_caps
authorJeff Layton <jlayton@kernel.org>
Mon, 5 Apr 2021 16:19:35 +0000 (12:19 -0400)
committerIlya Dryomov <idryomov@gmail.com>
Tue, 27 Apr 2021 21:52:23 +0000 (23:52 +0200)
commite72968e15b297a51dcefe93a95e875dcefe6c4aa
tree026a5bad827793090e0dc66f0fdd28dc6310f530
parent1775c7ddacfcea29051c67409087578f8f4d751b
ceph: drop pinned_page parameter from ceph_get_caps

All of the existing callers that don't set this to NULL just drop the
page reference at some arbitrary point later in processing. There's no
point in keeping a page reference that we don't use, so just drop the
reference immediately after checking the Uptodate flag.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/addr.c
fs/ceph/caps.c
fs/ceph/file.c
fs/ceph/super.h