]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: make CAP_FILE_RD expireable
authorSage Weil <sage@newdream.net>
Wed, 18 Mar 2009 17:44:49 +0000 (10:44 -0700)
committerSage Weil <sage@newdream.net>
Wed, 18 Mar 2009 17:46:04 +0000 (10:46 -0700)
src/include/ceph_fs.h

index d7607fc3c6df533e11721e4b80e149b48dc5ccad..873cb5f5fbdb7819931338c6c7bd118bc02ff463 100644 (file)
@@ -992,7 +992,7 @@ static inline int ceph_flags_to_mode(int flags)
  * these cap bits time out, if no others are held and nothing is
  * registered as 'wanted' by the client.
  */
-#define CEPH_CAP_EXPIREABLE (CEPH_CAP_PIN|CEPH_CAP_ANY_RDCACHE)
+#define CEPH_CAP_EXPIREABLE (CEPH_CAP_PIN|CEPH_CAP_ANY_RDCACHE|CEPH_CAP_FILE_RD)
 
 static inline int ceph_caps_for_mode(int mode)
 {