ceph: don't include used caps in cap_wanted
authorYan, Zheng <zyan@redhat.com>
Mon, 25 May 2015 09:36:42 +0000 (17:36 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Thu, 25 Jun 2015 08:49:30 +0000 (11:49 +0300)
commit41445999aeec1f0fdf196ab55b2c770473b2ea01
tree35d1112d66d1fc1c07aec89c54047bff6583363c
parent3e0708b990f7e46d87d47b3b06de322490f2f2ee
ceph: don't include used caps in cap_wanted

when copying files to cephfs, file data may stay in page cache after
corresponding file is closed. Cached data use Fc capability. If we
include Fc capability in cap_wanted, MDS will treat files with cached
data as open files, and journal them in an EOpen event when trimming
log segment.

Signed-off-by: Yan, Zheng <zyan@redhat.com>
fs/ceph/caps.c