Re: [PATCH v2 2/2] ceph: allow rename operation under different quota realms

From: Yan, Zheng
Date: Tue Apr 07 2020 - 23:10:57 EST


On Wed, Apr 8, 2020 at 7:00 AM Jeff Layton <jlayton@xxxxxxxxxx> wrote:

>
> Somewhat idle curiosity, but what happens with hardlinked files where
> one dentry is in one quota domain and another is in a different one?
> Does it stay in the old quotarealm?
>
> In any case, this is likely fine as non-hardlinked files are the
> pessimal case anyway.

rstat only tracks primary dentry. inode is in the quota realm where
its primary linkage is in.