From: tappro Date: Thu, 18 May 2006 13:38:36 +0000 (+0000) Subject: alloc new fid if IT_CREATE bit is set X-Git-Tag: v1_8_0_110~486^2~1801 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=5d789277d4324ed86db930b9e852950c9c903a73;p=fs%2Flustre-release.git alloc new fid if IT_CREATE bit is set --- diff --git a/lustre/llite/namei.c b/lustre/llite/namei.c index 186533d..8e64ae8 100644 --- a/lustre/llite/namei.c +++ b/lustre/llite/namei.c @@ -384,7 +384,7 @@ static struct dentry *ll_lookup_it(struct inode *parent, struct dentry *dentry, icbd.icbd_parent = parent; /* allocate new fid for child */ - if (it->it_op == IT_OPEN || it->it_op == IT_CREAT) { + if (it->it_op & IT_CREAT) { struct placement_hint hint = { .ph_pname = NULL, .ph_cname = &dentry->d_name, .ph_opc = LUSTRE_OPC_CREATE };