ceph: only invalidate on check_caps if we actually have pages
authorSage Weil <sage@newdream.net>
Fri, 17 Sep 2010 15:38:25 +0000 (08:38 -0700)
committerSage Weil <sage@newdream.net>
Wed, 20 Oct 2010 22:38:15 +0000 (15:38 -0700)
commit93afd449aa3c0430ef409c13e1cb2b3f0458fc10
treedd9ab308735c2414260539e33605197a5f90f069
parent4c32f5dda5ffe23687a55da1538b7cc426710d1a
ceph: only invalidate on check_caps if we actually have pages

The i_rdcache_gen value only implies we MAY have cached pages; actually
check the mapping to see if it's worth bothering with an invalidate.

Signed-off-by: Sage Weil <sage@newdream.net>
fs/ceph/caps.c