ceph: quota: cache inode pointer in ceph_snap_realm
Keep a pointer to the inode in struct ceph_snap_realm. This allows to optimize functions that walk the realms hierarchy (e.g. in quotas). Signed-off-by: Luis Henriques <lhenriques@suse.com> Reviewed-by: "Yan, Zheng" <zyan@redhat.com> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
This commit is contained in:
committed by
Ilya Dryomov
parent
0eb6bbe4d9
commit
e3161f17d9
@@ -755,6 +755,7 @@ struct ceph_readdir_cache_control {
|
||||
*/
|
||||
struct ceph_snap_realm {
|
||||
u64 ino;
|
||||
struct inode *inode;
|
||||
atomic_t nref;
|
||||
struct rb_node node;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user