ceph: request new max size only when there is auth cap
authorYan, Zheng <zyan@redhat.com>
Tue, 10 Mar 2020 11:34:19 +0000 (19:34 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 30 Mar 2020 10:42:43 +0000 (12:42 +0200)
commit42d70f8e31dfd3b795259b0d5c7ff4d4b45c24fd
tree1e88c9bfc065fe8df6e6e75539c2cee8860252c8
parent546d402085d6ea3c13bdea62a98b48a53c18eed4
ceph: request new max size only when there is auth cap

When there is no auth cap, check_max_size() can't do anything and may
cause an infinite loop inside ceph_get_caps().

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/caps.c