ceph: eliminate the recursion when rebuilding the snap context
authorXiubo Li <xiubli@redhat.com>
Sat, 19 Feb 2022 06:56:17 +0000 (14:56 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Tue, 1 Mar 2022 17:26:37 +0000 (18:26 +0100)
commit74a31df4f1f16807a93e414a322baf6eceddb60d
treeb015b33598f76d03cbd442985e788885bd219aa7
parent2e586641c950e7f3e7e008404bd783a466b9b590
ceph: eliminate the recursion when rebuilding the snap context

Use a list instead of recursion to avoid possible stack overflow.

Signed-off-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/snap.c
fs/ceph/super.h