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>
Showing
- Documentation/filesystems/ceph.txt 4 additions, 0 deletionsDocumentation/filesystems/ceph.txt
- fs/ceph/caps.c 26 additions, 7 deletionsfs/ceph/caps.c
- fs/ceph/dir.c 19 additions, 1 deletionfs/ceph/dir.c
- fs/ceph/mds_client.c 26 additions, 8 deletionsfs/ceph/mds_client.c
- fs/ceph/mds_client.h 3 additions, 0 deletionsfs/ceph/mds_client.h
- fs/ceph/super.c 9 additions, 3 deletionsfs/ceph/super.c
- fs/ceph/super.h 3 additions, 2 deletionsfs/ceph/super.h
- include/linux/ceph/types.h 1 addition, 0 deletionsinclude/linux/ceph/types.h
Loading
Please register or sign in to comment