/fs/autofs/ |
D | dev-ioctl.c | 152 static int autofs_dev_ioctl_version(struct file *fp, in autofs_dev_ioctl_version() argument 163 static int autofs_dev_ioctl_protover(struct file *fp, in autofs_dev_ioctl_protover() argument 172 static int autofs_dev_ioctl_protosubver(struct file *fp, in autofs_dev_ioctl_protosubver() argument 256 static int autofs_dev_ioctl_openmount(struct file *fp, in autofs_dev_ioctl_openmount() argument 287 static int autofs_dev_ioctl_closemount(struct file *fp, in autofs_dev_ioctl_closemount() argument 298 static int autofs_dev_ioctl_ready(struct file *fp, in autofs_dev_ioctl_ready() argument 312 static int autofs_dev_ioctl_fail(struct file *fp, in autofs_dev_ioctl_fail() argument 336 static int autofs_dev_ioctl_setpipefd(struct file *fp, in autofs_dev_ioctl_setpipefd() argument 389 static int autofs_dev_ioctl_catatonic(struct file *fp, in autofs_dev_ioctl_catatonic() argument 398 static int autofs_dev_ioctl_timeout(struct file *fp, in autofs_dev_ioctl_timeout() argument [all …]
|
/fs/nfsd/ |
D | nfs4state.c | 80 static bool check_for_locks(struct nfs4_file *fp, struct nfs4_lockowner *lowner); 414 struct nfs4_file *fp = container_of(rcu, struct nfs4_file, fi_rcu); in nfsd4_free_file_rcu() local 416 kmem_cache_free(file_slab, fp); in nfsd4_free_file_rcu() 544 __nfs4_file_get_access(struct nfs4_file *fp, u32 access) in __nfs4_file_get_access() argument 546 lockdep_assert_held(&fp->fi_lock); in __nfs4_file_get_access() 549 atomic_inc(&fp->fi_access[O_WRONLY]); in __nfs4_file_get_access() 551 atomic_inc(&fp->fi_access[O_RDONLY]); in __nfs4_file_get_access() 555 nfs4_file_get_access(struct nfs4_file *fp, u32 access) in nfs4_file_get_access() argument 557 lockdep_assert_held(&fp->fi_lock); in nfs4_file_get_access() 564 if ((access & fp->fi_share_deny) != 0) in nfs4_file_get_access() [all …]
|
D | nfs4layouts.c | 159 struct nfs4_file *fp = ls->ls_stid.sc_file; in nfsd4_free_layout_stateid() local 167 spin_lock(&fp->fi_lock); in nfsd4_free_layout_stateid() 169 spin_unlock(&fp->fi_lock); in nfsd4_free_layout_stateid() 216 struct nfs4_file *fp = parent->sc_file; in nfsd4_alloc_layout_stateid() local 225 get_nfs4_file(fp); in nfsd4_alloc_layout_stateid() 226 stp->sc_file = fp; in nfsd4_alloc_layout_stateid() 239 ls->ls_file = nfsd_file_get(fp->fi_deleg_file); in nfsd4_alloc_layout_stateid() 241 ls->ls_file = find_any_file(fp); in nfsd4_alloc_layout_stateid() 246 put_nfs4_file(fp); in nfsd4_alloc_layout_stateid() 256 spin_lock(&fp->fi_lock); in nfsd4_alloc_layout_stateid() [all …]
|
D | pnfs.h | 74 struct nfs4_file *fp); 89 struct nfs4_file *fp) in nfsd4_return_all_file_layouts() argument
|
D | export.c | 1151 static int show_secinfo_run(struct seq_file *m, struct exp_flavor_info **fp, struct exp_flavor_info… in show_secinfo_run() argument 1155 flags = (*fp)->flags; in show_secinfo_run() 1156 seq_printf(m, ",sec=%d", (*fp)->pseudoflavor); in show_secinfo_run() 1157 (*fp)++; in show_secinfo_run() 1158 while (*fp != end && secinfo_flags_equal(flags, (*fp)->flags)) { in show_secinfo_run() 1159 seq_printf(m, ":%d", (*fp)->pseudoflavor); in show_secinfo_run() 1160 (*fp)++; in show_secinfo_run()
|
/fs/ocfs2/ |
D | locks.c | 28 struct ocfs2_file_private *fp = file->private_data; in ocfs2_do_flock() local 29 struct ocfs2_lock_res *lockres = &fp->fp_flock; in ocfs2_do_flock() 36 mutex_lock(&fp->fp_mutex); in ocfs2_do_flock() 78 mutex_unlock(&fp->fp_mutex); in ocfs2_do_flock() 86 struct ocfs2_file_private *fp = file->private_data; in ocfs2_do_funlock() local 88 mutex_lock(&fp->fp_mutex); in ocfs2_do_funlock() 91 mutex_unlock(&fp->fp_mutex); in ocfs2_do_funlock()
|
D | file.c | 56 struct ocfs2_file_private *fp; in ocfs2_init_file_private() local 58 fp = kzalloc(sizeof(struct ocfs2_file_private), GFP_KERNEL); in ocfs2_init_file_private() 59 if (!fp) in ocfs2_init_file_private() 62 fp->fp_file = file; in ocfs2_init_file_private() 63 mutex_init(&fp->fp_mutex); in ocfs2_init_file_private() 64 ocfs2_file_lock_res_init(&fp->fp_flock, fp); in ocfs2_init_file_private() 65 file->private_data = fp; in ocfs2_init_file_private() 72 struct ocfs2_file_private *fp = file->private_data; in ocfs2_free_file_private() local 75 if (fp) { in ocfs2_free_file_private() 76 ocfs2_simple_drop_lockres(osb, &fp->fp_flock); in ocfs2_free_file_private() [all …]
|
D | dlmglue.h | 118 struct ocfs2_file_private *fp);
|
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() 725 struct ocfs2_file_private *fp) in ocfs2_file_lock_res_init() argument 727 struct inode *inode = fp->fp_file->f_mapping->host; in ocfs2_file_lock_res_init() 735 fp); in ocfs2_file_lock_res_init() 1973 struct ocfs2_file_private *fp = file->private_data; in ocfs2_file_lock() local 1974 struct ocfs2_lock_res *lockres = &fp->fp_flock; in ocfs2_file_lock() 2069 struct ocfs2_file_private *fp = file->private_data; in ocfs2_file_unlock() local 2070 struct ocfs2_lock_res *lockres = &fp->fp_flock; in ocfs2_file_unlock()
|
D | alloc.c | 1889 struct find_path_data *fp = data; in find_path_ins() local 1892 ocfs2_path_insert_eb(fp->path, fp->index, bh); in find_path_ins() 1893 fp->index++; in find_path_ins()
|
/fs/ocfs2/dlmfs/ |
D | dlmfs.c | 122 struct dlmfs_filp_private *fp = NULL; in dlmfs_file_open() local 139 fp = kmalloc(sizeof(*fp), GFP_NOFS); in dlmfs_file_open() 140 if (!fp) { in dlmfs_file_open() 144 fp->fp_lock_level = level; in dlmfs_file_open() 156 kfree(fp); in dlmfs_file_open() 160 file->private_data = fp; in dlmfs_file_open() 170 struct dlmfs_filp_private *fp = file->private_data; in dlmfs_file_release() local 177 if (fp) { in dlmfs_file_release() 178 level = fp->fp_lock_level; in dlmfs_file_release() 182 kfree(fp); in dlmfs_file_release()
|
/fs/ |
D | fcntl.c | 869 struct fasync_struct *fa, **fp; in fasync_remove_entry() local 874 for (fp = fapp; (fa = *fp) != NULL; fp = &fa->fa_next) { in fasync_remove_entry() 882 *fp = fa->fa_next; in fasync_remove_entry() 917 struct fasync_struct *fa, **fp; in fasync_insert_entry() local 921 for (fp = fapp; (fa = *fp) != NULL; fp = &fa->fa_next) { in fasync_insert_entry() 1014 void kill_fasync(struct fasync_struct **fp, int sig, int band) in kill_fasync() argument 1019 if (*fp) { in kill_fasync() 1021 kill_fasync_rcu(rcu_dereference(*fp), sig, band); in kill_fasync()
|
D | io_uring.c | 3075 fpl->fp[i] = get_file(ctx->user_files[i + offset]); in __io_sqe_files_scm() 3076 unix_inflight(fpl->user, fpl->fp[i]); in __io_sqe_files_scm() 3080 UNIXCB(skb).fp = fpl; in __io_sqe_files_scm() 3085 fput(fpl->fp[i]); in __io_sqe_files_scm()
|
/fs/gfs2/ |
D | file.c | 609 struct gfs2_file *fp; in gfs2_open_common() local 618 fp = kzalloc(sizeof(struct gfs2_file), GFP_NOFS); in gfs2_open_common() 619 if (!fp) in gfs2_open_common() 622 mutex_init(&fp->f_fl_mutex); in gfs2_open_common() 625 file->private_data = fp; in gfs2_open_common() 1225 struct gfs2_file *fp = file->private_data; in do_flock() local 1226 struct gfs2_holder *fl_gh = &fp->f_fl_gh; in do_flock() 1237 mutex_lock(&fp->f_fl_mutex); in do_flock() 1275 mutex_unlock(&fp->f_fl_mutex); in do_flock() 1281 struct gfs2_file *fp = file->private_data; in do_unflock() local [all …]
|
/fs/freevxfs/ |
D | vxfs_lookup.c | 215 vxfs_readdir(struct file *fp, struct dir_context *ctx) in vxfs_readdir() argument 217 struct inode *ip = file_inode(fp); in vxfs_readdir() 224 if (!dir_emit_dot(fp, ctx)) in vxfs_readdir()
|
D | vxfs_immed.c | 66 vxfs_immed_readpage(struct file *fp, struct page *pp) in vxfs_immed_readpage() argument
|
/fs/jfs/ |
D | jfs_xtree.c | 119 xtpage_t * fp, struct btstack * btstack); 125 static int xtRelink(tid_t tid, struct inode *ip, xtpage_t * fp); 2398 struct metapage * fmp, xtpage_t * fp, struct btstack * btstack) in xtDeleteUp() argument 2413 if (fp->header.flag & BT_ROOT) { in xtDeleteUp() 2415 fp->header.flag &= ~BT_INTERNAL; in xtDeleteUp() 2416 fp->header.flag |= BT_LEAF; in xtDeleteUp() 2417 fp->header.nextindex = cpu_to_le16(XTENTRYSTART); in xtDeleteUp() 2427 if ((rc = xtRelink(tid, ip, fp))) { in xtDeleteUp() 2432 xaddr = addressPXD(&fp->header.self); in xtDeleteUp() 2433 xlen = lengthPXD(&fp->header.self); in xtDeleteUp()
|
D | jfs_dtree.c | 152 dtpage_t * fp, struct btstack * btstack); 2226 struct metapage * fmp, dtpage_t * fp, struct btstack * btstack) in dtDeleteUp() argument 2269 pxdlock->pxd = fp->header.self; in dtDeleteUp() 2273 if ((rc = dtRelink(tid, ip, fp))) { in dtDeleteUp() 2278 xlen = lengthPXD(&fp->header.self); in dtDeleteUp()
|
D | jfs_metapage.c | 471 static int metapage_readpage(struct file *fp, struct page *page) in metapage_readpage() argument
|