summaryrefslogtreecommitdiffstats
path: root/fs/ceph/super.h
diff options
context:
space:
mode:
authorYan, Zheng <zyan@redhat.com>2017-07-11 18:49:44 +0800
committerIlya Dryomov <idryomov@gmail.com>2017-09-06 19:56:42 +0200
commit4214fb158cc423ac31b841000e219855be055388 (patch)
tree716d8d92d1969d31cbda430b5ccc60299d3751cb /fs/ceph/super.h
parent95cca2b44e54b00a3ed6ed7dc869717cd6807e81 (diff)
downloadtalos-op-linux-4214fb158cc423ac31b841000e219855be055388.tar.gz
talos-op-linux-4214fb158cc423ac31b841000e219855be055388.zip
ceph: validate correctness of some mount options
Signed-off-by: "Yan, Zheng" <zyan@redhat.com> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'fs/ceph/super.h')
-rw-r--r--fs/ceph/super.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/fs/ceph/super.h b/fs/ceph/super.h
index eed2a67d8e52..279a2f401cf5 100644
--- a/fs/ceph/super.h
+++ b/fs/ceph/super.h
@@ -56,6 +56,15 @@
#define CEPH_MAX_READDIR_BYTES_DEFAULT (512*1024)
#define CEPH_SNAPDIRNAME_DEFAULT ".snap"
+/*
+ * Delay telling the MDS we no longer want caps, in case we reopen
+ * the file. Delay a minimum amount of time, even if we send a cap
+ * message for some other reason. Otherwise, take the oppotunity to
+ * update the mds to avoid sending another message later.
+ */
+#define CEPH_CAPS_WANTED_DELAY_MIN_DEFAULT 5 /* cap release delay */
+#define CEPH_CAPS_WANTED_DELAY_MAX_DEFAULT 60 /* cap release delay */
+
struct ceph_mount_options {
int flags;
int sb_flags;
OpenPOWER on IntegriCloud