]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
kclient: adjust ceph_finish_cap behavior
authorSage Weil <sage@newdream.net>
Fri, 17 Oct 2008 14:26:03 +0000 (07:26 -0700)
committerSage Weil <sage@newdream.net>
Fri, 17 Oct 2008 19:45:10 +0000 (12:45 -0700)
commit80432c2b8d16f48075d3d52578f1abe7e2f99ce6
tree2c23beb6e69f83d9a4bd2b89463ade997d501a1e
parent8f4baaa4e838c46bc39f96bfe1ff09976e048c9a
kclient: adjust ceph_finish_cap behavior

Look at capsnap->dirty instead of used cap refs, as this directly indicates
whether _this_ capsnap can be flushed (used bit indicates whether _all_
capsnaps can be flushed.. no need to wait that long!).  Avoid an extra
call to ceph_flush_snaps by waiting until after to call it.
src/kernel/caps.c
src/kernel/snap.c
src/kernel/super.h