aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ceph
diff options
context:
space:
mode:
authorJeff Layton <jlayton@kernel.org>2019-07-05 10:55:38 -0400
committerIlya Dryomov <idryomov@gmail.com>2019-09-16 06:06:24 -0400
commitdaca8bda95d868b528c2fcf01e3d74c3eaf03889 (patch)
tree2e978b2b26d02ff7a9cf0ca4afc66cf1145322e2 /fs/ceph
parent27b0a392095d30e452772d4ae636150fd7f2172d (diff)
ceph: remove CEPH_I_NOFLUSH
Nothing sets this flag. Signed-off-by: Jeff Layton <jlayton@kernel.org> Reviewed-by: "Yan, Zheng" <zyan@redhat.com> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'fs/ceph')
-rw-r--r--fs/ceph/caps.c10
-rw-r--r--fs/ceph/super.h19
2 files changed, 9 insertions, 20 deletions
diff --git a/fs/ceph/caps.c b/fs/ceph/caps.c
index bb91abaf7559..b1c80d837d0d 100644
--- a/fs/ceph/caps.c
+++ b/fs/ceph/caps.c
@@ -2003,11 +2003,6 @@ retry_locked:
2003 } 2003 }
2004 2004
2005ack: 2005ack:
2006 if (ci->i_ceph_flags & CEPH_I_NOFLUSH) {
2007 dout(" skipping %p I_NOFLUSH set\n", inode);
2008 continue;
2009 }
2010
2011 if (session && session != cap->session) { 2006 if (session && session != cap->session) {
2012 dout("oops, wrong session %p mutex\n", session); 2007 dout("oops, wrong session %p mutex\n", session);
2013 mutex_unlock(&session->s_mutex); 2008 mutex_unlock(&session->s_mutex);
@@ -2105,11 +2100,6 @@ static int try_flush_caps(struct inode *inode, u64 *ptid)
2105retry: 2100retry:
2106 spin_lock(&ci->i_ceph_lock); 2101 spin_lock(&ci->i_ceph_lock);
2107retry_locked: 2102retry_locked:
2108 if (ci->i_ceph_flags & CEPH_I_NOFLUSH) {
2109 spin_unlock(&ci->i_ceph_lock);
2110 dout("try_flush_caps skipping %p I_NOFLUSH set\n", inode);
2111 goto out;
2112 }
2113 if (ci->i_dirty_caps && ci->i_auth_cap) { 2103 if (ci->i_dirty_caps && ci->i_auth_cap) {
2114 struct ceph_cap *cap = ci->i_auth_cap; 2104 struct ceph_cap *cap = ci->i_auth_cap;
2115 int delayed; 2105 int delayed;
diff --git a/fs/ceph/super.h b/fs/ceph/super.h
index cf16308800fa..03e4828c7635 100644
--- a/fs/ceph/super.h
+++ b/fs/ceph/super.h
@@ -507,16 +507,15 @@ static inline struct inode *ceph_find_inode(struct super_block *sb,
507#define CEPH_I_DIR_ORDERED (1 << 0) /* dentries in dir are ordered */ 507#define CEPH_I_DIR_ORDERED (1 << 0) /* dentries in dir are ordered */
508#define CEPH_I_NODELAY (1 << 1) /* do not delay cap release */ 508#define CEPH_I_NODELAY (1 << 1) /* do not delay cap release */
509#define CEPH_I_FLUSH (1 << 2) /* do not delay flush of dirty metadata */ 509#define CEPH_I_FLUSH (1 << 2) /* do not delay flush of dirty metadata */
510#define CEPH_I_NOFLUSH (1 << 3) /* do not flush dirty caps */ 510#define CEPH_I_POOL_PERM (1 << 3) /* pool rd/wr bits are valid */
511#define CEPH_I_POOL_PERM (1 << 4) /* pool rd/wr bits are valid */ 511#define CEPH_I_POOL_RD (1 << 4) /* can read from pool */
512#define CEPH_I_POOL_RD (1 << 5) /* can read from pool */ 512#define CEPH_I_POOL_WR (1 << 5) /* can write to pool */
513#define CEPH_I_POOL_WR (1 << 6) /* can write to pool */ 513#define CEPH_I_SEC_INITED (1 << 6) /* security initialized */
514#define CEPH_I_SEC_INITED (1 << 7) /* security initialized */ 514#define CEPH_I_CAP_DROPPED (1 << 7) /* caps were forcibly dropped */
515#define CEPH_I_CAP_DROPPED (1 << 8) /* caps were forcibly dropped */ 515#define CEPH_I_KICK_FLUSH (1 << 8) /* kick flushing caps */
516#define CEPH_I_KICK_FLUSH (1 << 9) /* kick flushing caps */ 516#define CEPH_I_FLUSH_SNAPS (1 << 9) /* need flush snapss */
517#define CEPH_I_FLUSH_SNAPS (1 << 10) /* need flush snapss */ 517#define CEPH_I_ERROR_WRITE (1 << 10) /* have seen write errors */
518#define CEPH_I_ERROR_WRITE (1 << 11) /* have seen write errors */ 518#define CEPH_I_ERROR_FILELOCK (1 << 11) /* have seen file lock errors */
519#define CEPH_I_ERROR_FILELOCK (1 << 12) /* have seen file lock errors */
520 519
521 520
522/* 521/*