diff options
-rw-r--r-- | fs/ceph/caps.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ceph/caps.c b/fs/ceph/caps.c index 51546d54b841..7bf182b03973 100644 --- a/fs/ceph/caps.c +++ b/fs/ceph/caps.c | |||
@@ -2384,7 +2384,7 @@ static void handle_cap_grant(struct inode *inode, struct ceph_mds_caps *grant, | |||
2384 | ceph_cap_string(cap->issued), | 2384 | ceph_cap_string(cap->issued), |
2385 | ceph_cap_string(newcaps), | 2385 | ceph_cap_string(newcaps), |
2386 | ceph_cap_string(revoking)); | 2386 | ceph_cap_string(revoking)); |
2387 | if (revoking & CEPH_CAP_FILE_BUFFER) | 2387 | if (revoking & used & CEPH_CAP_FILE_BUFFER) |
2388 | writeback = 1; /* initiate writeback; will delay ack */ | 2388 | writeback = 1; /* initiate writeback; will delay ack */ |
2389 | else if (revoking == CEPH_CAP_FILE_CACHE && | 2389 | else if (revoking == CEPH_CAP_FILE_CACHE && |
2390 | (newcaps & CEPH_CAP_FILE_LAZYIO) == 0 && | 2390 | (newcaps & CEPH_CAP_FILE_LAZYIO) == 0 && |