Home
last modified time | relevance | path

Searched refs:fp (Results 1 – 19 of 19) sorted by relevance

/fs/autofs4/
Ddev-ioctl.c176 static int autofs_dev_ioctl_protover(struct file *fp, in autofs_dev_ioctl_protover() argument
185 static int autofs_dev_ioctl_protosubver(struct file *fp, in autofs_dev_ioctl_protosubver() argument
271 static int autofs_dev_ioctl_openmount(struct file *fp, in autofs_dev_ioctl_openmount() argument
301 static int autofs_dev_ioctl_closemount(struct file *fp, in autofs_dev_ioctl_closemount() argument
312 static int autofs_dev_ioctl_ready(struct file *fp, in autofs_dev_ioctl_ready() argument
326 static int autofs_dev_ioctl_fail(struct file *fp, in autofs_dev_ioctl_fail() argument
350 static int autofs_dev_ioctl_setpipefd(struct file *fp, in autofs_dev_ioctl_setpipefd() argument
403 static int autofs_dev_ioctl_catatonic(struct file *fp, in autofs_dev_ioctl_catatonic() argument
412 static int autofs_dev_ioctl_timeout(struct file *fp, in autofs_dev_ioctl_timeout() argument
432 static int autofs_dev_ioctl_requester(struct file *fp, in autofs_dev_ioctl_requester() argument
[all …]
/fs/nfsd/
Dnfs4state.c78 static bool check_for_locks(struct nfs4_file *fp, struct nfs4_lockowner *lowner);
276 struct nfs4_file *fp = container_of(rcu, struct nfs4_file, fi_rcu); in nfsd4_free_file_rcu() local
278 kmem_cache_free(file_slab, fp); in nfsd4_free_file_rcu()
405 __nfs4_file_get_access(struct nfs4_file *fp, u32 access) in __nfs4_file_get_access() argument
407 lockdep_assert_held(&fp->fi_lock); in __nfs4_file_get_access()
410 atomic_inc(&fp->fi_access[O_WRONLY]); in __nfs4_file_get_access()
412 atomic_inc(&fp->fi_access[O_RDONLY]); in __nfs4_file_get_access()
416 nfs4_file_get_access(struct nfs4_file *fp, u32 access) in nfs4_file_get_access() argument
418 lockdep_assert_held(&fp->fi_lock); in nfs4_file_get_access()
425 if ((access & fp->fi_share_deny) != 0) in nfs4_file_get_access()
[all …]
Dnfs4layouts.c135 struct nfs4_file *fp = ls->ls_stid.sc_file; in nfsd4_free_layout_stateid() local
143 spin_lock(&fp->fi_lock); in nfsd4_free_layout_stateid()
145 spin_unlock(&fp->fi_lock); in nfsd4_free_layout_stateid()
188 struct nfs4_file *fp = parent->sc_file; in nfsd4_alloc_layout_stateid() local
197 get_nfs4_file(fp); in nfsd4_alloc_layout_stateid()
198 stp->sc_file = fp; in nfsd4_alloc_layout_stateid()
211 ls->ls_file = get_file(fp->fi_deleg_file); in nfsd4_alloc_layout_stateid()
213 ls->ls_file = find_any_file(fp); in nfsd4_alloc_layout_stateid()
218 put_nfs4_file(fp); in nfsd4_alloc_layout_stateid()
228 spin_lock(&fp->fi_lock); in nfsd4_alloc_layout_stateid()
[all …]
Dpnfs.h60 struct nfs4_file *fp);
75 struct nfs4_file *fp) in nfsd4_return_all_file_layouts() argument
Dexport.c1125 static int show_secinfo_run(struct seq_file *m, struct exp_flavor_info **fp, struct exp_flavor_info… in show_secinfo_run() argument
1129 flags = (*fp)->flags; in show_secinfo_run()
1130 seq_printf(m, ",sec=%d", (*fp)->pseudoflavor); in show_secinfo_run()
1131 (*fp)++; in show_secinfo_run()
1132 while (*fp != end && secinfo_flags_equal(flags, (*fp)->flags)) { in show_secinfo_run()
1133 seq_printf(m, ":%d", (*fp)->pseudoflavor); in show_secinfo_run()
1134 (*fp)++; in show_secinfo_run()
/fs/ocfs2/
Dlocks.c42 struct ocfs2_file_private *fp = file->private_data; in ocfs2_do_flock() local
43 struct ocfs2_lock_res *lockres = &fp->fp_flock; in ocfs2_do_flock()
50 mutex_lock(&fp->fp_mutex); in ocfs2_do_flock()
92 mutex_unlock(&fp->fp_mutex); in ocfs2_do_flock()
100 struct ocfs2_file_private *fp = file->private_data; in ocfs2_do_funlock() local
102 mutex_lock(&fp->fp_mutex); in ocfs2_do_funlock()
105 mutex_unlock(&fp->fp_mutex); in ocfs2_do_funlock()
Dfile.c70 struct ocfs2_file_private *fp; in ocfs2_init_file_private() local
72 fp = kzalloc(sizeof(struct ocfs2_file_private), GFP_KERNEL); in ocfs2_init_file_private()
73 if (!fp) in ocfs2_init_file_private()
76 fp->fp_file = file; in ocfs2_init_file_private()
77 mutex_init(&fp->fp_mutex); in ocfs2_init_file_private()
78 ocfs2_file_lock_res_init(&fp->fp_flock, fp); in ocfs2_init_file_private()
79 file->private_data = fp; in ocfs2_init_file_private()
86 struct ocfs2_file_private *fp = file->private_data; in ocfs2_free_file_private() local
89 if (fp) { in ocfs2_free_file_private()
90 ocfs2_simple_drop_lockres(osb, &fp->fp_flock); in ocfs2_free_file_private()
[all …]
Ddlmglue.h108 struct ocfs2_file_private *fp);
Ddlmglue.c581 struct ocfs2_file_private *fp = lockres->l_priv; in ocfs2_get_file_osb() local
583 return OCFS2_SB(fp->fp_file->f_mapping->host->i_sb); in ocfs2_get_file_osb()
687 struct ocfs2_file_private *fp) in ocfs2_file_lock_res_init() argument
689 struct inode *inode = fp->fp_file->f_mapping->host; in ocfs2_file_lock_res_init()
697 fp); in ocfs2_file_lock_res_init()
1926 struct ocfs2_file_private *fp = file->private_data; in ocfs2_file_lock() local
1927 struct ocfs2_lock_res *lockres = &fp->fp_flock; in ocfs2_file_lock()
2022 struct ocfs2_file_private *fp = file->private_data; in ocfs2_file_unlock() local
2023 struct ocfs2_lock_res *lockres = &fp->fp_flock; in ocfs2_file_unlock()
Dalloc.c1871 struct find_path_data *fp = data; in find_path_ins() local
1874 ocfs2_path_insert_eb(fp->path, fp->index, bh); in find_path_ins()
1875 fp->index++; in find_path_ins()
/fs/ocfs2/dlmfs/
Ddlmfs.c136 struct dlmfs_filp_private *fp = NULL; in dlmfs_file_open() local
153 fp = kmalloc(sizeof(*fp), GFP_NOFS); in dlmfs_file_open()
154 if (!fp) { in dlmfs_file_open()
158 fp->fp_lock_level = level; in dlmfs_file_open()
170 kfree(fp); in dlmfs_file_open()
174 file->private_data = fp; in dlmfs_file_open()
184 struct dlmfs_filp_private *fp = file->private_data; in dlmfs_file_release() local
192 if (fp) { in dlmfs_file_release()
193 level = fp->fp_lock_level; in dlmfs_file_release()
197 kfree(fp); in dlmfs_file_release()
/fs/
Dfcntl.c581 struct fasync_struct *fa, **fp; in fasync_remove_entry() local
586 for (fp = fapp; (fa = *fp) != NULL; fp = &fa->fa_next) { in fasync_remove_entry()
594 *fp = fa->fa_next; in fasync_remove_entry()
629 struct fasync_struct *fa, **fp; in fasync_insert_entry() local
633 for (fp = fapp; (fa = *fp) != NULL; fp = &fa->fa_next) { in fasync_insert_entry()
727 void kill_fasync(struct fasync_struct **fp, int sig, int band) in kill_fasync() argument
732 if (*fp) { in kill_fasync()
734 kill_fasync_rcu(rcu_dereference(*fp), sig, band); in kill_fasync()
Dcompat_ioctl.c176 compat_uptr_t fp; in do_video_stillpicture() local
180 err = get_user(fp, &up->iFrame); in do_video_stillpicture()
188 err = put_user(compat_ptr(fp), &up_native->iFrame); in do_video_stillpicture()
/fs/gfs2/
Dfile.c553 struct gfs2_file *fp; in gfs2_open_common() local
562 fp = kzalloc(sizeof(struct gfs2_file), GFP_NOFS); in gfs2_open_common()
563 if (!fp) in gfs2_open_common()
566 mutex_init(&fp->f_fl_mutex); in gfs2_open_common()
569 file->private_data = fp; in gfs2_open_common()
1019 struct gfs2_file *fp = file->private_data; in do_flock() local
1020 struct gfs2_holder *fl_gh = &fp->f_fl_gh; in do_flock()
1031 mutex_lock(&fp->f_fl_mutex); in do_flock()
1070 mutex_unlock(&fp->f_fl_mutex); in do_flock()
1076 struct gfs2_file *fp = file->private_data; in do_unflock() local
[all …]
/fs/freevxfs/
Dvxfs_lookup.c231 vxfs_readdir(struct file *fp, struct dir_context *ctx) in vxfs_readdir() argument
233 struct inode *ip = file_inode(fp); in vxfs_readdir()
240 if (!dir_emit_dot(fp, ctx)) in vxfs_readdir()
Dvxfs_immed.c66 vxfs_immed_readpage(struct file *fp, struct page *pp) in vxfs_immed_readpage() argument
/fs/jfs/
Djfs_xtree.c132 xtpage_t * fp, struct btstack * btstack);
138 static int xtRelink(tid_t tid, struct inode *ip, xtpage_t * fp);
2411 struct metapage * fmp, xtpage_t * fp, struct btstack * btstack) in xtDeleteUp() argument
2426 if (fp->header.flag & BT_ROOT) { in xtDeleteUp()
2428 fp->header.flag &= ~BT_INTERNAL; in xtDeleteUp()
2429 fp->header.flag |= BT_LEAF; in xtDeleteUp()
2430 fp->header.nextindex = cpu_to_le16(XTENTRYSTART); in xtDeleteUp()
2440 if ((rc = xtRelink(tid, ip, fp))) { in xtDeleteUp()
2445 xaddr = addressPXD(&fp->header.self); in xtDeleteUp()
2446 xlen = lengthPXD(&fp->header.self); in xtDeleteUp()
Djfs_dtree.c165 dtpage_t * fp, struct btstack * btstack);
2238 struct metapage * fmp, dtpage_t * fp, struct btstack * btstack) in dtDeleteUp() argument
2281 pxdlock->pxd = fp->header.self; in dtDeleteUp()
2285 if ((rc = dtRelink(tid, ip, fp))) { in dtDeleteUp()
2290 xlen = lengthPXD(&fp->header.self); in dtDeleteUp()
Djfs_metapage.c483 static int metapage_readpage(struct file *fp, struct page *page) in metapage_readpage() argument