ceph: add mount option to limit caps count
authorYan, Zheng <zyan@redhat.com>
Fri, 1 Feb 2019 06:57:15 +0000 (14:57 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Tue, 5 Mar 2019 17:55:17 +0000 (18:55 +0100)
commitfe33032daae2e584d9e7e33bab44c9eafced1f8f
treea03be95fd94ffcd66c69e2146a1930837f769eb4
parent37c4efc1ddf98ba8b234d116d863a9464445901e
ceph: add mount option to limit caps count

If number of caps exceed the limit, ceph_trim_dentires() also trim
dentries with valid leases. Trimming dentry releases references to
associated inode, which may evict inode and release caps.

By default, there is no limit for caps count.

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Documentation/filesystems/ceph.txt
fs/ceph/caps.c
fs/ceph/dir.c
fs/ceph/mds_client.c
fs/ceph/mds_client.h
fs/ceph/super.c
fs/ceph/super.h
include/linux/ceph/types.h