| /fs/smb/server/ |
| A D | vfs_cache.c | 371 if (fp) in __ksmbd_lookup_fd() 372 fp = ksmbd_fp_get(fp); in __ksmbd_lookup_fd() 420 if (!fp) in ksmbd_close_fd() 429 if (!fp) in ksmbd_fd_put() 439 if (!fp) in __sanity_check() 494 if (fp && (fp->conn || in ksmbd_lookup_durable_fd() 523 fp = ksmbd_fp_get(fp); in ksmbd_lookup_fd_cguid() 626 fp->f_ci = ksmbd_inode_get(fp); in ksmbd_open_fd() 650 if (!fp) in ksmbd_update_fstate() 714 if (fp->is_resilient || fp->is_persistent) in is_reconnectable() [all …]
|
| A D | smb2pdu.c | 3015 fp = dh_info.fp; in smb2_open() 3435 fp, in smb2_open() 3451 list_add(&fp->node, &fp->f_ci->m_fp_list); in smb2_open() 3504 fp->persistent_id, fp, in smb2_open() 3711 fp); in smb2_open() 3727 fp); in smb2_open() 3778 if (fp) in smb2_open() 5349 if (!fp) in smb2_get_info_file() 5700 if (!fp) in smb2_get_info_sec() 6487 return set_info_sec(fp->conn, fp->tcon, &fp->filp->f_path, pntsd, in smb2_set_info_sec() [all …]
|
| A D | oplock.c | 204 if (ksmbd_stream_fd(fp)) in opinfo_count() 212 if (ksmbd_stream_fd(fp)) in opinfo_count_inc() 220 if (ksmbd_stream_fd(fp)) in opinfo_count_dec() 392 opinfo_count_dec(fp); in close_id_del_oplock() 628 struct ksmbd_file *fp; in __smb2_oplock_break_noti() local 631 if (!fp) in __smb2_oplock_break_noti() 1205 if (fp->attrib_only && fp->cdoption != FILE_OVERWRITE_IF_LE && in smb_grant_oplock() 1281 opinfo->o_fp = fp; in smb_grant_oplock() 1283 opinfo_count_inc(fp); in smb_grant_oplock() 1340 ci = fp->f_ci; in smb_break_all_levII_oplock() [all …]
|
| A D | vfs_cache.h | 135 static inline bool ksmbd_stream_fd(struct ksmbd_file *fp) in ksmbd_stream_fd() argument 137 return fp->stream.name != NULL; in ksmbd_stream_fd() 147 void ksmbd_fd_put(struct ksmbd_work *work, struct ksmbd_file *fp); 152 void ksmbd_put_durable_fd(struct ksmbd_file *fp); 155 unsigned int ksmbd_open_durable_fd(struct ksmbd_file *fp); 165 void ksmbd_update_fstate(struct ksmbd_file_table *ft, struct ksmbd_file *fp, 181 bool ksmbd_inode_pending_delete(struct ksmbd_file *fp); 182 void ksmbd_set_inode_pending_delete(struct ksmbd_file *fp); 183 void ksmbd_clear_inode_pending_delete(struct ksmbd_file *fp); 184 void ksmbd_fd_set_delete_on_close(struct ksmbd_file *fp, [all …]
|
| A D | oplock.h | 90 u64 pid, struct ksmbd_file *fp, __u16 tid, 93 struct ksmbd_file *fp, int is_trunc); 98 void close_id_del_oplock(struct ksmbd_file *fp); 99 void smb_break_all_oplock(struct ksmbd_work *work, struct ksmbd_file *fp); 100 struct oplock_info *opinfo_get(struct ksmbd_file *fp); 111 void create_durable_v2_rsp_buf(char *cc, struct ksmbd_file *fp); 114 void create_posix_rsp_buf(char *cc, struct ksmbd_file *fp); 121 void smb_send_parent_lease_break_noti(struct ksmbd_file *fp, 123 void smb_lazy_parent_lease_break_close(struct ksmbd_file *fp); 126 struct ksmbd_file *fp,
|
| A D | vfs.c | 301 fp->stream.pos = v_len; in ksmbd_vfs_stream_read() 384 if (ksmbd_stream_fd(fp)) in ksmbd_vfs_read() 457 &fp->filp->f_path, in ksmbd_vfs_stream_write() 458 fp->stream.name, in ksmbd_vfs_stream_write() 466 fp->stream.pos = size; in ksmbd_vfs_stream_write() 502 filp = fp->filp; in ksmbd_vfs_write() 539 fp->filp, err); in ksmbd_vfs_write() 573 struct ksmbd_file *fp; in ksmbd_vfs_fsync() local 577 if (!fp) { in ksmbd_vfs_fsync() 584 ksmbd_fd_put(work, fp); in ksmbd_vfs_fsync() [all …]
|
| A D | vfs.h | 80 int ksmbd_vfs_read(struct ksmbd_work *work, struct ksmbd_file *fp, size_t count, 82 int ksmbd_vfs_write(struct ksmbd_work *work, struct ksmbd_file *fp, 93 struct ksmbd_file *fp, loff_t size); 131 int ksmbd_vfs_empty_dir(struct ksmbd_file *fp); 133 int ksmbd_vfs_zero_data(struct ksmbd_work *work, struct ksmbd_file *fp, 136 int ksmbd_vfs_fqar_lseek(struct ksmbd_file *fp, loff_t start, loff_t length,
|
| /fs/autofs/ |
| A D | dev-ioctl.c | 551 mnt = fp->f_path.mnt; in autofs_dev_ioctl_expire() 681 struct file *fp; in _autofs_dev_ioctl() local 719 fp = NULL; in _autofs_dev_ioctl() 733 fp = fget(param->ioctlfd); in _autofs_dev_ioctl() 734 if (!fp) { in _autofs_dev_ioctl() 741 sb = file_inode(fp)->i_sb; in _autofs_dev_ioctl() 744 fput(fp); in _autofs_dev_ioctl() 756 fput(fp); in _autofs_dev_ioctl() 761 err = fn(fp, sbi, param); in _autofs_dev_ioctl() 763 if (fp) in _autofs_dev_ioctl() [all …]
|
| /fs/nfsd/ |
| A D | nfs4layouts.c | 185 spin_lock(&fp->fi_lock); in nfsd4_free_layout_stateid() 187 spin_unlock(&fp->fi_lock); in nfsd4_free_layout_stateid() 240 get_nfs4_file(fp); in nfsd4_alloc_layout_stateid() 241 stp->sc_file = fp; in nfsd4_alloc_layout_stateid() 261 put_nfs4_file(fp); in nfsd4_alloc_layout_stateid() 271 spin_lock(&fp->fi_lock); in nfsd4_alloc_layout_stateid() 273 spin_unlock(&fp->fi_lock); in nfsd4_alloc_layout_stateid() 425 spin_lock(&fp->fi_lock); in nfsd4_insert_layout() 435 spin_unlock(&fp->fi_lock); in nfsd4_insert_layout() 443 spin_lock(&fp->fi_lock); in nfsd4_insert_layout() [all …]
|
| A D | nfs4state.c | 804 if (atomic_dec_and_lock(&fp->fi_access[oflag], &fp->fi_lock)) { in __nfs4_file_put_access() 873 fp = co->co_file; in put_clnt_odstate() 902 co->co_file = fp; in find_or_hash_clnt_odstate() 1165 get_nfs4_file(fp); in alloc_init_deleg() 1191 if (fp) in nfs4_put_stid() 1192 put_nfs4_file(fp); in nfs4_put_stid() 1603 if (fp) in free_ol_stateid_reaplist() 4758 memset(fp->fi_fds, 0, sizeof(fp->fi_fds)); in nfsd4_file_init() 4759 memset(fp->fi_access, 0, sizeof(fp->fi_access)); in nfsd4_file_init() 5311 if (!fp) in nfs4_share_conflict() [all …]
|
| A D | pnfs.h | 75 struct nfs4_file *fp); 92 struct nfs4_file *fp) in nfsd4_return_all_file_layouts() argument
|
| A D | export.c | 1357 static int show_secinfo_run(struct seq_file *m, struct exp_flavor_info **fp, struct exp_flavor_info… in show_secinfo_run() argument 1361 flags = (*fp)->flags; in show_secinfo_run() 1362 seq_printf(m, ",sec=%d", (*fp)->pseudoflavor); in show_secinfo_run() 1363 (*fp)++; in show_secinfo_run() 1364 while (*fp != end && secinfo_flags_equal(flags, (*fp)->flags)) { in show_secinfo_run() 1365 seq_printf(m, ":%d", (*fp)->pseudoflavor); in show_secinfo_run() 1366 (*fp)++; in show_secinfo_run()
|
| A D | vfs.h | 161 void nfsd_filp_close(struct file *fp);
|
| A D | vfs.c | 2315 void nfsd_filp_close(struct file *fp) in nfsd_filp_close() argument 2317 get_file(fp); in nfsd_filp_close() 2318 filp_close(fp, NULL); in nfsd_filp_close() 2319 __fput_sync(fp); in nfsd_filp_close()
|
| /fs/ocfs2/ |
| A D | locks.c | 27 struct ocfs2_file_private *fp = file->private_data; in ocfs2_do_flock() local 28 struct ocfs2_lock_res *lockres = &fp->fp_flock; in ocfs2_do_flock() 35 mutex_lock(&fp->fp_mutex); in ocfs2_do_flock() 77 mutex_unlock(&fp->fp_mutex); in ocfs2_do_flock() 85 struct ocfs2_file_private *fp = file->private_data; in ocfs2_do_funlock() local 87 mutex_lock(&fp->fp_mutex); in ocfs2_do_funlock() 90 mutex_unlock(&fp->fp_mutex); in ocfs2_do_funlock()
|
| A D | file.c | 54 struct ocfs2_file_private *fp; in ocfs2_init_file_private() local 57 if (!fp) in ocfs2_init_file_private() 60 fp->fp_file = file; in ocfs2_init_file_private() 61 mutex_init(&fp->fp_mutex); in ocfs2_init_file_private() 62 ocfs2_file_lock_res_init(&fp->fp_flock, fp); in ocfs2_init_file_private() 63 file->private_data = fp; in ocfs2_init_file_private() 70 struct ocfs2_file_private *fp = file->private_data; in ocfs2_free_file_private() local 73 if (fp) { in ocfs2_free_file_private() 74 ocfs2_simple_drop_lockres(osb, &fp->fp_flock); in ocfs2_free_file_private() 75 ocfs2_lock_res_free(&fp->fp_flock); in ocfs2_free_file_private() [all …]
|
| A D | dlmglue.h | 116 struct ocfs2_file_private *fp);
|
| A D | dlmglue.c | 596 struct ocfs2_file_private *fp = lockres->l_priv; in ocfs2_get_file_osb() local 598 return OCFS2_SB(fp->fp_file->f_mapping->host->i_sb); in ocfs2_get_file_osb() 731 struct ocfs2_file_private *fp) in ocfs2_file_lock_res_init() argument 733 struct inode *inode = fp->fp_file->f_mapping->host; in ocfs2_file_lock_res_init() 741 fp); in ocfs2_file_lock_res_init() 1979 struct ocfs2_file_private *fp = file->private_data; in ocfs2_file_lock() local 1980 struct ocfs2_lock_res *lockres = &fp->fp_flock; in ocfs2_file_lock() 2075 struct ocfs2_file_private *fp = file->private_data; in ocfs2_file_unlock() local 2076 struct ocfs2_lock_res *lockres = &fp->fp_flock; in ocfs2_file_unlock()
|
| /fs/ocfs2/dlmfs/ |
| A D | dlmfs.c | 120 struct dlmfs_filp_private *fp = NULL; in dlmfs_file_open() local 137 fp = kmalloc(sizeof(*fp), GFP_NOFS); in dlmfs_file_open() 138 if (!fp) { in dlmfs_file_open() 142 fp->fp_lock_level = level; in dlmfs_file_open() 154 kfree(fp); in dlmfs_file_open() 158 file->private_data = fp; in dlmfs_file_open() 168 struct dlmfs_filp_private *fp = file->private_data; in dlmfs_file_release() local 175 if (fp) { in dlmfs_file_release() 176 level = fp->fp_lock_level; in dlmfs_file_release() 180 kfree(fp); in dlmfs_file_release()
|
| /fs/ |
| A D | fcntl.c | 992 struct fasync_struct *fa, **fp; in fasync_remove_entry() local 997 for (fp = fapp; (fa = *fp) != NULL; fp = &fa->fa_next) { in fasync_remove_entry() 1005 *fp = fa->fa_next; in fasync_remove_entry() 1040 struct fasync_struct *fa, **fp; in fasync_insert_entry() local 1044 for (fp = fapp; (fa = *fp) != NULL; fp = &fa->fa_next) { in fasync_insert_entry() 1141 void kill_fasync(struct fasync_struct **fp, int sig, int band) in kill_fasync() argument 1146 if (*fp) { in kill_fasync() 1148 kill_fasync_rcu(rcu_dereference(*fp), sig, band); in kill_fasync()
|
| /fs/gfs2/ |
| A D | file.c | 628 struct gfs2_file *fp; in gfs2_open_common() local 641 if (!fp) in gfs2_open_common() 644 mutex_init(&fp->f_fl_mutex); in gfs2_open_common() 647 file->private_data = fp; in gfs2_open_common() 1480 struct gfs2_file *fp = file->private_data; in do_flock() local 1481 struct gfs2_holder *fl_gh = &fp->f_fl_gh; in do_flock() 1494 mutex_lock(&fp->f_fl_mutex); in do_flock() 1534 mutex_unlock(&fp->f_fl_mutex); in do_flock() 1541 struct gfs2_holder *fl_gh = &fp->f_fl_gh; in do_unflock() 1543 mutex_lock(&fp->f_fl_mutex); in do_unflock() [all …]
|
| /fs/freevxfs/ |
| A D | vxfs_lookup.c | 190 vxfs_readdir(struct file *fp, struct dir_context *ctx) in vxfs_readdir() argument 192 struct inode *ip = file_inode(fp); in vxfs_readdir() 199 if (!dir_emit_dot(fp, ctx)) in vxfs_readdir()
|
| A D | vxfs_immed.c | 31 static int vxfs_immed_read_folio(struct file *fp, struct folio *folio) in vxfs_immed_read_folio() argument
|
| /fs/lockd/ |
| A D | svcsubs.c | 89 struct file **fp = &file->f_file[mode]; in nlm_do_fopen() local 92 if (*fp) in nlm_do_fopen() 94 nfserr = nlmsvc_ops->fopen(rqstp, &file->f_handle, fp, mode); in nlm_do_fopen()
|
| /fs/dlm/ |
| A D | debug_fs.c | 703 static ssize_t dlm_rawmsg_write(struct file *fp, const char __user *user_buf, in dlm_rawmsg_write() argument 721 ret = dlm_midcomms_rawmsg_send(fp->private_data, buf, count); in dlm_rawmsg_write()
|