ceph: avoid sending unnessesary FLUSHSNAP message
authorYan, Zheng <zyan@redhat.com>
Fri, 1 May 2015 08:57:16 +0000 (16:57 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Thu, 25 Jun 2015 08:49:28 +0000 (11:49 +0300)
commit860560904962d08fd38666207c910065fe53e074
tree88a9532f9652a11bb393a4496130c532705282b9
parent5dda377cf0a6bd43f64a3c1efb670d7c668e7b29
ceph: avoid sending unnessesary FLUSHSNAP message

when a snap notification contains no new snapshot, we can avoid
sending FLUSHSNAP message to MDS. But we still need to create
cap_snap in some case because it's required by write path and
page writeback path

Signed-off-by: Yan, Zheng <zyan@redhat.com>
fs/ceph/caps.c
fs/ceph/snap.c
fs/ceph/super.h