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)
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

diff --cc fs/ceph/caps.c
Simple merge