ceph: avoid repeatedly adding inode to mdsc->snap_flush_list
authorYan, Zheng <zyan@redhat.com>
Mon, 11 Feb 2019 07:18:52 +0000 (15:18 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 18 Feb 2019 17:08:29 +0000 (18:08 +0100)
commit04242ff3ac0abbaa4362f97781dac268e6c3541a
tree26b1402043c10e71033660d05689bf6315be7e8c
parent0fd3fd0a9bb0b02b6435bb7070e9f7b82a23f068
ceph: avoid repeatedly adding inode to mdsc->snap_flush_list

Otherwise, mdsc->snap_flush_list may get corrupted.

Cc: stable@vger.kernel.org
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/snap.c