diff options
-rw-r--r-- | fs/ceph/caps.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/ceph/caps.c b/fs/ceph/caps.c index 74c74842c860..0e85d3c80790 100644 --- a/fs/ceph/caps.c +++ b/fs/ceph/caps.c | |||
@@ -1718,10 +1718,9 @@ out_unlocked: | |||
1718 | static int caps_are_flushed(struct inode *inode, unsigned tid) | 1718 | static int caps_are_flushed(struct inode *inode, unsigned tid) |
1719 | { | 1719 | { |
1720 | struct ceph_inode_info *ci = ceph_inode(inode); | 1720 | struct ceph_inode_info *ci = ceph_inode(inode); |
1721 | int dirty, i, ret = 1; | 1721 | int i, ret = 1; |
1722 | 1722 | ||
1723 | spin_lock(&inode->i_lock); | 1723 | spin_lock(&inode->i_lock); |
1724 | dirty = __ceph_caps_dirty(ci); | ||
1725 | for (i = 0; i < CEPH_CAP_BITS; i++) | 1724 | for (i = 0; i < CEPH_CAP_BITS; i++) |
1726 | if ((ci->i_flushing_caps & (1 << i)) && | 1725 | if ((ci->i_flushing_caps & (1 << i)) && |
1727 | ci->i_cap_flush_tid[i] <= tid) { | 1726 | ci->i_cap_flush_tid[i] <= tid) { |