Commit 492428ec authored by Alex Zhuravlev's avatar Alex Zhuravlev Committed by Oleg Drokin
Browse files

LU-13636 osd: create agent inode with explicit owner

to avoid quota misaccounting.

Lustre-change: https://review.whamcloud.com/38842
Lustre-commit: 7805b45f



Test-Parameters: fstype=ldiskfs
Signed-off-by: default avatarAlex Zhuravlev <bzzz@whamcloud.com>
Change-Id: I5a02e6e7de71821a10704ac3516ee087998c9c21
Reviewed-by: default avatarHongchao Zhang <hongchao@whamcloud.com>
Reviewed-by: default avatarAndreas Dilger <adilger@whamcloud.com>
Signed-off-by: default avatarMinh Diep <mdiep@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/40403

Tested-by: default avatarjenkins <devops@whamcloud.com>
Tested-by: default avatarMaloo <maloo@whamcloud.com>
parent debeeefa
......@@ -3823,6 +3823,7 @@ static struct inode *osd_create_local_agent_inode(const struct lu_env *env,
struct osd_thread_info *info = osd_oti_get(env);
struct inode *local;
struct osd_thandle *oh;
uid_t own[2] = {0, 0};
int rc;
ENTRY;
......@@ -3831,8 +3832,7 @@ static struct inode *osd_create_local_agent_inode(const struct lu_env *env,
oh = container_of(th, struct osd_thandle, ot_super);
LASSERT(oh->ot_handle->h_transaction != NULL);
local = ldiskfs_create_inode(oh->ot_handle, pobj->oo_inode, type,
NULL);
local = ldiskfs_create_inode(oh->ot_handle, pobj->oo_inode, type, own);
if (IS_ERR(local)) {
CERROR("%s: create local error %d\n", osd_name(osd),
(int)PTR_ERR(local));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment