Whamcloud - gitweb
alloc new fid if IT_CREATE bit is set
authortappro <tappro>
Thu, 18 May 2006 13:38:36 +0000 (13:38 +0000)
committertappro <tappro>
Thu, 18 May 2006 13:38:36 +0000 (13:38 +0000)
lustre/llite/namei.c

index 186533d..8e64ae8 100644 (file)
@@ -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 };