Lines Matching refs:curr_fp
637 struct ksmbd_file *curr_fp) in smb_shared_mode_error() argument
641 prev_fp->saccess, curr_fp->daccess); in smb_shared_mode_error()
644 int ksmbd_smb_check_shared_mode(struct file *filp, struct ksmbd_file *curr_fp) in ksmbd_smb_check_shared_mode() argument
653 down_read(&curr_fp->f_ci->m_lock); in ksmbd_smb_check_shared_mode()
654 list_for_each_entry(prev_fp, &curr_fp->f_ci->m_fp_list, node) { in ksmbd_smb_check_shared_mode()
661 if (ksmbd_stream_fd(prev_fp) && ksmbd_stream_fd(curr_fp)) in ksmbd_smb_check_shared_mode()
662 if (strcmp(prev_fp->stream.name, curr_fp->stream.name)) in ksmbd_smb_check_shared_mode()
665 if (prev_fp->attrib_only != curr_fp->attrib_only) in ksmbd_smb_check_shared_mode()
669 curr_fp->daccess & FILE_DELETE_LE) { in ksmbd_smb_check_shared_mode()
672 curr_fp); in ksmbd_smb_check_shared_mode()
681 if (ksmbd_stream_fd(prev_fp) && !ksmbd_stream_fd(curr_fp)) in ksmbd_smb_check_shared_mode()
685 curr_fp->daccess & (FILE_EXECUTE_LE | FILE_READ_DATA_LE)) { in ksmbd_smb_check_shared_mode()
688 curr_fp); in ksmbd_smb_check_shared_mode()
694 curr_fp->daccess & (FILE_WRITE_DATA_LE | FILE_APPEND_DATA_LE)) { in ksmbd_smb_check_shared_mode()
697 curr_fp); in ksmbd_smb_check_shared_mode()
703 !(curr_fp->saccess & FILE_SHARE_READ_LE)) { in ksmbd_smb_check_shared_mode()
706 curr_fp); in ksmbd_smb_check_shared_mode()
712 !(curr_fp->saccess & FILE_SHARE_WRITE_LE)) { in ksmbd_smb_check_shared_mode()
715 curr_fp); in ksmbd_smb_check_shared_mode()
721 !(curr_fp->saccess & FILE_SHARE_DELETE_LE)) { in ksmbd_smb_check_shared_mode()
724 curr_fp); in ksmbd_smb_check_shared_mode()
729 up_read(&curr_fp->f_ci->m_lock); in ksmbd_smb_check_shared_mode()