]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
ceph: quota: cache inode pointer in ceph_snap_realm
authorLuis Henriques <lhenriques@suse.com>
Wed, 13 May 2020 16:21:49 +0000 (13:21 -0300)
committerKhalid Elmously <khalid.elmously@canonical.com>
Fri, 15 May 2020 04:31:51 +0000 (00:31 -0400)
commit7b4beb037193a0f6c6da4441266875d3f2d3e2ac
treeb7b4d12b71dba254f14119e4ffa8bc7e2685ef4f
parent59b8c73e3fa97b6743e4b12d1cb087255fd59109
ceph: quota: cache inode pointer in ceph_snap_realm

BugLink: https://bugs.launchpad.net/bugs/1875884
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>
(cherry picked from commit e3161f17d92699ce6ca3b7988131b10ad4035cf9)
Signed-off-by: Marcelo Henrique Cerri <marcelo.cerri@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Sultan Alsawaf <sultan.alsawaf@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
fs/ceph/caps.c
fs/ceph/inode.c
fs/ceph/quota.c
fs/ceph/snap.c
fs/ceph/super.h