]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit30ae26ff12433ade79ab4b9195b35c85afdb6fff
treedd9ab308735c2414260539e33605197a5f90f069
parent41cd2cab2ae251ea4d255d38d56a882a14fd4cee
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