From 5d789277d4324ed86db930b9e852950c9c903a73 Mon Sep 17 00:00:00 2001 From: tappro Date: Thu, 18 May 2006 13:38:36 +0000 Subject: [PATCH] alloc new fid if IT_CREATE bit is set --- lustre/llite/namei.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }; -- 1.8.3.1