]> git.baikalelectronics.ru Git - kernel.git/commit
ceph: check mapping to determine if FILE_CACHE cap is used
authorSage Weil <sage@newdream.net>
Fri, 17 Sep 2010 16:54:08 +0000 (09:54 -0700)
committerSage Weil <sage@newdream.net>
Fri, 17 Sep 2010 16:54:31 +0000 (09:54 -0700)
commit167f7d01acc403a681eaf29a2693732f375aaade
tree039276b81586a986f5b9662fc28b37cbf9271eb3
parent447fd17da5bc2587ef91a53398d60d5c92a265d3
ceph: check mapping to determine if FILE_CACHE cap is used

See if the i_data mapping has any pages to determine if the FILE_CACHE
capability is currently in use, instead of assuming it is any time the
rdcache_gen value is set (i.e., issued -> used).

This allows the MDS RECALL_STATE process work for inodes that have cached
pages.

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