Lines Matching refs:cifs_inode
396 struct cifsInodeInfo *cifs_inode; in cifs_alloc_inode() local
397 cifs_inode = alloc_inode_sb(sb, cifs_inode_cachep, GFP_KERNEL); in cifs_alloc_inode()
398 if (!cifs_inode) in cifs_alloc_inode()
400 cifs_inode->cifsAttrs = 0x20; /* default */ in cifs_alloc_inode()
401 cifs_inode->time = 0; in cifs_alloc_inode()
406 cifs_set_oplock_level(cifs_inode, 0); in cifs_alloc_inode()
407 cifs_inode->lease_granted = false; in cifs_alloc_inode()
408 cifs_inode->flags = 0; in cifs_alloc_inode()
409 spin_lock_init(&cifs_inode->writers_lock); in cifs_alloc_inode()
410 cifs_inode->writers = 0; in cifs_alloc_inode()
411 cifs_inode->netfs.inode.i_blkbits = 14; /* 2**14 = CIFS_MAX_MSGSIZE */ in cifs_alloc_inode()
412 cifs_inode->netfs.remote_i_size = 0; in cifs_alloc_inode()
413 cifs_inode->uniqueid = 0; in cifs_alloc_inode()
414 cifs_inode->createtime = 0; in cifs_alloc_inode()
415 cifs_inode->epoch = 0; in cifs_alloc_inode()
416 spin_lock_init(&cifs_inode->open_file_lock); in cifs_alloc_inode()
417 generate_random_uuid(cifs_inode->lease_key); in cifs_alloc_inode()
418 cifs_inode->symlink_target = NULL; in cifs_alloc_inode()
425 INIT_LIST_HEAD(&cifs_inode->openFileList); in cifs_alloc_inode()
426 INIT_LIST_HEAD(&cifs_inode->llist); in cifs_alloc_inode()
427 INIT_LIST_HEAD(&cifs_inode->deferred_closes); in cifs_alloc_inode()
428 spin_lock_init(&cifs_inode->deferred_lock); in cifs_alloc_inode()
429 return &cifs_inode->netfs.inode; in cifs_alloc_inode()