Lines Matching refs:newinode
180 struct inode *newinode = NULL; in cifs_do_create() local
198 rc = cifs_posix_open(full_path, &newinode, inode->i_sb, mode, in cifs_do_create()
202 if (newinode == NULL) { in cifs_do_create()
207 if (S_ISDIR(newinode->i_mode)) { in cifs_do_create()
209 iput(newinode); in cifs_do_create()
214 if (!S_ISREG(newinode->i_mode)) { in cifs_do_create()
356 rc = cifs_get_inode_info_unix(&newinode, full_path, inode->i_sb, in cifs_do_create()
360 rc = cifs_get_inode_info(&newinode, full_path, buf, inode->i_sb, in cifs_do_create()
362 if (newinode) { in cifs_do_create()
364 server->ops->set_lease_key(newinode, fid); in cifs_do_create()
365 if ((*oplock & CIFS_CREATE_ACTION) && S_ISREG(newinode->i_mode)) { in cifs_do_create()
367 newinode->i_mode = mode; in cifs_do_create()
369 newinode->i_uid = current_fsuid(); in cifs_do_create()
371 newinode->i_gid = inode->i_gid; in cifs_do_create()
373 newinode->i_gid = current_fsgid(); in cifs_do_create()
386 if (newinode) in cifs_do_create()
387 if (S_ISDIR(newinode->i_mode)) { in cifs_do_create()
393 d_add(direntry, newinode); in cifs_do_create()
403 if (newinode) in cifs_do_create()
404 iput(newinode); in cifs_do_create()