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_version(struct file *fp, in autofs_dev_ioctl_version() argument
187 static int autofs_dev_ioctl_protover(struct file *fp, in autofs_dev_ioctl_protover() argument
196 static int autofs_dev_ioctl_protosubver(struct file *fp, in autofs_dev_ioctl_protosubver() argument
285 static int autofs_dev_ioctl_openmount(struct file *fp, in autofs_dev_ioctl_openmount() argument
315 static int autofs_dev_ioctl_closemount(struct file *fp, in autofs_dev_ioctl_closemount() argument
326 static int autofs_dev_ioctl_ready(struct file *fp, in autofs_dev_ioctl_ready() argument
340 static int autofs_dev_ioctl_fail(struct file *fp, in autofs_dev_ioctl_fail() argument
364 static int autofs_dev_ioctl_setpipefd(struct file *fp, in autofs_dev_ioctl_setpipefd() argument
417 static int autofs_dev_ioctl_catatonic(struct file *fp, in autofs_dev_ioctl_catatonic() argument
426 static int autofs_dev_ioctl_timeout(struct file *fp, in autofs_dev_ioctl_timeout() argument
[all …]
/fs/nfsd/
Dnfs4state.c78 static bool check_for_locks(struct nfs4_file *fp, struct nfs4_lockowner *lowner);
385 struct nfs4_file *fp = container_of(rcu, struct nfs4_file, fi_rcu); in nfsd4_free_file_rcu() local
387 kmem_cache_free(file_slab, fp); in nfsd4_free_file_rcu()
514 __nfs4_file_get_access(struct nfs4_file *fp, u32 access) in __nfs4_file_get_access() argument
516 lockdep_assert_held(&fp->fi_lock); in __nfs4_file_get_access()
519 atomic_inc(&fp->fi_access[O_WRONLY]); in __nfs4_file_get_access()
521 atomic_inc(&fp->fi_access[O_RDONLY]); in __nfs4_file_get_access()
525 nfs4_file_get_access(struct nfs4_file *fp, u32 access) in nfs4_file_get_access() argument
527 lockdep_assert_held(&fp->fi_lock); in nfs4_file_get_access()
534 if ((access & fp->fi_share_deny) != 0) in nfs4_file_get_access()
[all …]
Dnfs4layouts.c165 struct nfs4_file *fp = ls->ls_stid.sc_file; in nfsd4_free_layout_stateid() local
173 spin_lock(&fp->fi_lock); in nfsd4_free_layout_stateid()
175 spin_unlock(&fp->fi_lock); in nfsd4_free_layout_stateid()
222 struct nfs4_file *fp = parent->sc_file; in nfsd4_alloc_layout_stateid() local
231 get_nfs4_file(fp); in nfsd4_alloc_layout_stateid()
232 stp->sc_file = fp; in nfsd4_alloc_layout_stateid()
245 ls->ls_file = get_file(fp->fi_deleg_file); in nfsd4_alloc_layout_stateid()
247 ls->ls_file = find_any_file(fp); in nfsd4_alloc_layout_stateid()
252 put_nfs4_file(fp); in nfsd4_alloc_layout_stateid()
262 spin_lock(&fp->fi_lock); in nfsd4_alloc_layout_stateid()
[all …]
Dpnfs.h73 struct nfs4_file *fp);
88 struct nfs4_file *fp) in nfsd4_return_all_file_layouts() argument
Dexport.c1135 static int show_secinfo_run(struct seq_file *m, struct exp_flavor_info **fp, struct exp_flavor_info… in show_secinfo_run() argument
1139 flags = (*fp)->flags; in show_secinfo_run()
1140 seq_printf(m, ",sec=%d", (*fp)->pseudoflavor); in show_secinfo_run()
1141 (*fp)++; in show_secinfo_run()
1142 while (*fp != end && secinfo_flags_equal(flags, (*fp)->flags)) { in show_secinfo_run()
1143 seq_printf(m, ":%d", (*fp)->pseudoflavor); in show_secinfo_run()
1144 (*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.c582 struct ocfs2_file_private *fp = lockres->l_priv; in ocfs2_get_file_osb() local
584 return OCFS2_SB(fp->fp_file->f_mapping->host->i_sb); in ocfs2_get_file_osb()
688 struct ocfs2_file_private *fp) in ocfs2_file_lock_res_init() argument
690 struct inode *inode = fp->fp_file->f_mapping->host; in ocfs2_file_lock_res_init()
698 fp); in ocfs2_file_lock_res_init()
1918 struct ocfs2_file_private *fp = file->private_data; in ocfs2_file_lock() local
1919 struct ocfs2_lock_res *lockres = &fp->fp_flock; in ocfs2_file_lock()
2014 struct ocfs2_file_private *fp = file->private_data; in ocfs2_file_unlock() local
2015 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.c582 struct fasync_struct *fa, **fp; in fasync_remove_entry() local
587 for (fp = fapp; (fa = *fp) != NULL; fp = &fa->fa_next) { in fasync_remove_entry()
595 *fp = fa->fa_next; in fasync_remove_entry()
630 struct fasync_struct *fa, **fp; in fasync_insert_entry() local
634 for (fp = fapp; (fa = *fp) != NULL; fp = &fa->fa_next) { in fasync_insert_entry()
728 void kill_fasync(struct fasync_struct **fp, int sig, int band) in kill_fasync() argument
733 if (*fp) { in kill_fasync()
735 kill_fasync_rcu(rcu_dereference(*fp), sig, band); in kill_fasync()
Dcompat_ioctl.c198 compat_uptr_t fp; in do_video_stillpicture() local
202 err = get_user(fp, &up->iFrame); in do_video_stillpicture()
210 err = put_user(compat_ptr(fp), &up_native->iFrame); in do_video_stillpicture()
/fs/gfs2/
Dfile.c548 struct gfs2_file *fp; in gfs2_open_common() local
557 fp = kzalloc(sizeof(struct gfs2_file), GFP_NOFS); in gfs2_open_common()
558 if (!fp) in gfs2_open_common()
561 mutex_init(&fp->f_fl_mutex); in gfs2_open_common()
564 file->private_data = fp; in gfs2_open_common()
1017 struct gfs2_file *fp = file->private_data; in do_flock() local
1018 struct gfs2_holder *fl_gh = &fp->f_fl_gh; in do_flock()
1029 mutex_lock(&fp->f_fl_mutex); in do_flock()
1068 mutex_unlock(&fp->f_fl_mutex); in do_flock()
1074 struct gfs2_file *fp = file->private_data; in do_unflock() local
[all …]
/fs/freevxfs/
Dvxfs_lookup.c219 vxfs_readdir(struct file *fp, struct dir_context *ctx) in vxfs_readdir() argument
221 struct inode *ip = file_inode(fp); in vxfs_readdir()
228 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.c484 static int metapage_readpage(struct file *fp, struct page *page) in metapage_readpage() argument