Lines Matching refs:cifs_file
353 cifsFileInfo_get(struct cifsFileInfo *cifs_file) in cifsFileInfo_get() argument
355 spin_lock(&cifs_file->file_info_lock); in cifsFileInfo_get()
356 cifsFileInfo_get_locked(cifs_file); in cifsFileInfo_get()
357 spin_unlock(&cifs_file->file_info_lock); in cifsFileInfo_get()
358 return cifs_file; in cifsFileInfo_get()
366 void cifsFileInfo_put(struct cifsFileInfo *cifs_file) in cifsFileInfo_put() argument
368 struct inode *inode = d_inode(cifs_file->dentry); in cifsFileInfo_put()
369 struct cifs_tcon *tcon = tlink_tcon(cifs_file->tlink); in cifsFileInfo_put()
381 spin_lock(&cifs_file->file_info_lock); in cifsFileInfo_put()
382 if (--cifs_file->count > 0) { in cifsFileInfo_put()
383 spin_unlock(&cifs_file->file_info_lock); in cifsFileInfo_put()
387 spin_unlock(&cifs_file->file_info_lock); in cifsFileInfo_put()
393 cifs_add_pending_open_locked(&fid, cifs_file->tlink, &open); in cifsFileInfo_put()
396 list_del(&cifs_file->flist); in cifsFileInfo_put()
397 list_del(&cifs_file->tlist); in cifsFileInfo_put()
401 d_inode(cifs_file->dentry)); in cifsFileInfo_put()
414 oplock_break_cancelled = cancel_work_sync(&cifs_file->oplock_break); in cifsFileInfo_put()
416 if (!tcon->need_reconnect && !cifs_file->invalidHandle) { in cifsFileInfo_put()
422 server->ops->close(xid, tcon, &cifs_file->fid); in cifsFileInfo_put()
436 list_for_each_entry_safe(li, tmp, &cifs_file->llist->locks, llist) { in cifsFileInfo_put()
441 list_del(&cifs_file->llist->llist); in cifsFileInfo_put()
442 kfree(cifs_file->llist); in cifsFileInfo_put()
445 cifs_put_tlink(cifs_file->tlink); in cifsFileInfo_put()
446 dput(cifs_file->dentry); in cifsFileInfo_put()
448 kfree(cifs_file); in cifsFileInfo_put()