summaryrefslogtreecommitdiffstats
path: root/fs/ceph/super.h
diff options
context:
space:
mode:
authorYan, Zheng <zyan@redhat.com>2016-07-05 10:45:21 +0200
committerIlya Dryomov <idryomov@gmail.com>2016-07-28 03:00:43 +0200
commit13c2b57d81ec27716b9c943fd4077264b9804e55 (patch)
treecc818793a1c35b548c4f57ec0dcf47c66fbc55bf /fs/ceph/super.h
parentceph: unify cap flush and snapcap flush (diff)
downloadlinux-13c2b57d81ec27716b9c943fd4077264b9804e55.tar.xz
linux-13c2b57d81ec27716b9c943fd4077264b9804e55.zip
ceph: avoid sending duplicated cap flush message
make ceph_kick_flushing_caps() ignore inodes whose cap flushes have already been re-sent by ceph_early_kick_flushing_caps() Signed-off-by: Yan, Zheng <zyan@redhat.com>
Diffstat (limited to 'fs/ceph/super.h')
-rw-r--r--fs/ceph/super.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ceph/super.h b/fs/ceph/super.h
index 08ed51299f9f..16068787afb4 100644
--- a/fs/ceph/super.h
+++ b/fs/ceph/super.h
@@ -468,6 +468,7 @@ static inline struct inode *ceph_find_inode(struct super_block *sb,
#define CEPH_I_POOL_WR (1 << 6) /* can write to pool */
#define CEPH_I_SEC_INITED (1 << 7) /* security initialized */
#define CEPH_I_CAP_DROPPED (1 << 8) /* caps were forcibly dropped */
+#define CEPH_I_KICK_FLUSH (1 << 9) /* kick flushing caps */
static inline void __ceph_dir_set_complete(struct ceph_inode_info *ci,
long long release_count,