aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSage Weil <sage@newdream.net>2010-02-09 19:43:11 -0500
committerSage Weil <sage@newdream.net>2010-02-11 14:48:55 -0500
commit8031049147c58d9d8b6226c3ac31a9d72d053e25 (patch)
treed89aec0fc9dcae6ea20fe0665b7700911c2dbf61
parent0840d8af3e6e40bcd5f2366698eb2755f88acfea (diff)
ceph: remove bogus invalidate_mapping_pages
We were invalidating mapping pages when dropping FILE_CACHE in __send_cap(). But ceph_check_caps attempts to invalidate already, and also checks for success, so we should never get to this point. Signed-off-by: Sage Weil <sage@newdream.net>
-rw-r--r--fs/ceph/caps.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/fs/ceph/caps.c b/fs/ceph/caps.c
index 20b28dc0c97c..ab9b571dda11 100644
--- a/fs/ceph/caps.c
+++ b/fs/ceph/caps.c
@@ -1137,12 +1137,6 @@ static int __send_cap(struct ceph_mds_client *mdsc, struct ceph_cap *cap,
1137 1137
1138 spin_unlock(&inode->i_lock); 1138 spin_unlock(&inode->i_lock);
1139 1139
1140 if (dropping & CEPH_CAP_FILE_CACHE) {
1141 /* invalidate what we can */
1142 dout("invalidating pages on %p\n", inode);
1143 invalidate_mapping_pages(&inode->i_data, 0, -1);
1144 }
1145
1146 ret = send_cap_msg(session, ceph_vino(inode).ino, cap_id, 1140 ret = send_cap_msg(session, ceph_vino(inode).ino, cap_id,
1147 op, keep, want, flushing, seq, flush_tid, issue_seq, mseq, 1141 op, keep, want, flushing, seq, flush_tid, issue_seq, mseq,
1148 size, max_size, &mtime, &atime, time_warp_seq, 1142 size, max_size, &mtime, &atime, time_warp_seq,