Merge PR #37310 into master

* refs/pull/37310/head:
	client: refresh rstat for quota check of rename

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
This commit is contained in:
Patrick Donnelly 2020-09-23 08:05:47 -07:00
commit e089ff759f
No known key found for this signature in database
GPG Key ID: 3A2A7E25BEA8AADB

View File

@ -6568,7 +6568,7 @@ int Client::_lookup(Inode *dir, const string& dname, int mask, InodeRef *target,
int r = 0;
Dentry *dn = NULL;
// can only request shared caps
mask &= CEPH_CAP_ANY_SHARED;
mask &= CEPH_CAP_ANY_SHARED | CEPH_STAT_RSTAT;
if (dname == "..") {
if (dir->dentries.empty()) {