mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-21 16:29:59 +00:00
![Yan, Zheng](/assets/img/avatar_default.png)
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>
31 lines
558 B
C
31 lines
558 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _FS_CEPH_TYPES_H
|
|
#define _FS_CEPH_TYPES_H
|
|
|
|
/* needed before including ceph_fs.h */
|
|
#include <linux/in.h>
|
|
#include <linux/types.h>
|
|
#include <linux/fcntl.h>
|
|
#include <linux/string.h>
|
|
|
|
#include <linux/ceph/ceph_fs.h>
|
|
#include <linux/ceph/ceph_frag.h>
|
|
#include <linux/ceph/ceph_hash.h>
|
|
|
|
/*
|
|
* Identify inodes by both their ino AND snapshot id (a u64).
|
|
*/
|
|
struct ceph_vino {
|
|
u64 ino;
|
|
u64 snap;
|
|
};
|
|
|
|
|
|
/* context for the caps reservation mechanism */
|
|
struct ceph_cap_reservation {
|
|
int count;
|
|
int used;
|
|
};
|
|
|
|
|
|
#endif
|