Searched refs:file_lock (Results 1 - 25 of 74) sorted by path

123

/linux-master/drivers/fsi/
H A Dfsi-sbefifo.c136 struct mutex file_lock; member in struct:sbefifo_user
806 mutex_init(&user->file_lock);
829 mutex_lock(&user->file_lock);
864 mutex_unlock(&user->file_lock);
883 mutex_lock(&user->file_lock);
925 mutex_unlock(&user->file_lock);
991 mutex_lock(&user->file_lock);
1000 mutex_unlock(&user->file_lock);
/linux-master/drivers/misc/genwqe/
H A Dcard_base.c160 spin_lock_init(&cd->file_lock);
H A Dcard_base.h260 * @file_lock: Lock to protect access to file_list
315 spinlock_t file_lock; /* lock for open files */ member in struct:genwqe_dev
H A Dcard_dev.c37 spin_lock_irqsave(&cd->file_lock, flags);
39 spin_unlock_irqrestore(&cd->file_lock, flags);
48 spin_lock_irqsave(&cd->file_lock, flags);
50 spin_unlock_irqrestore(&cd->file_lock, flags);
57 spin_lock_irqsave(&cd->file_lock, flags);
59 spin_unlock_irqrestore(&cd->file_lock, flags);
264 spin_lock_irqsave(&cd->file_lock, flags);
270 spin_unlock_irqrestore(&cd->file_lock, flags);
280 spin_lock_irqsave(&cd->file_lock, flags);
285 spin_unlock_irqrestore(&cd->file_lock, flag
[all...]
/linux-master/fs/9p/
H A Dvfs_file.c104 static int v9fs_file_lock(struct file *filp, int cmd, struct file_lock *fl)
118 static int v9fs_file_do_lock(struct file *filp, int cmd, struct file_lock *fl)
223 static int v9fs_file_getlock(struct file *filp, struct file_lock *fl)
288 static int v9fs_file_lock_dotl(struct file *filp, int cmd, struct file_lock *fl)
319 struct file_lock *fl)
/linux-master/fs/afs/
H A Dflock.c17 static void afs_fl_copy_lock(struct file_lock *new, struct file_lock *fl);
18 static void afs_fl_release_private(struct file_lock *fl);
92 struct file_lock *p, *_p;
113 struct file_lock *p, *_p, *next = NULL;
159 struct file_lock *p;
165 struct file_lock, fl_u.afs.link);
451 static int afs_do_setlk(struct file *file, struct file_lock *fl)
701 static int afs_do_unlk(struct file *file, struct file_lock *fl)
722 static int afs_do_getlk(struct file *file, struct file_lock *f
[all...]
H A Dinternal.h1127 extern int afs_lock(struct file *, int, struct file_lock *);
1128 extern int afs_flock(struct file *, int, struct file_lock *);
/linux-master/fs/ceph/
H A Dlocks.c34 static void ceph_fl_copy_lock(struct file_lock *dst, struct file_lock *src)
45 static void ceph_fl_release_lock(struct file_lock *fl)
51 * If inode is NULL it should be a request file_lock,
77 int cmd, u8 wait, struct file_lock *fl)
89 * handling request reply and adding file_lock struct to
228 static int try_unlock_file(struct file *file, struct file_lock *fl)
247 int ceph_lock(struct file *file, int cmd, struct file_lock *fl)
314 int ceph_flock(struct file *file, int cmd, struct file_lock *fl)
380 struct file_lock *loc
[all...]
H A Dsuper.h1353 extern int ceph_lock(struct file *file, int cmd, struct file_lock *fl);
1354 extern int ceph_flock(struct file *file, int cmd, struct file_lock *fl);
/linux-master/fs/dlm/
H A Dplock.c28 struct file_lock flc;
29 int (*callback)(struct file_lock *fl, int result);
123 int cmd, struct file_lock *fl)
242 struct file_lock *fl;
243 struct file_lock *flc;
244 int (*notify)(struct file_lock *fl, int result) = NULL;
289 struct file_lock *fl)
360 struct file_lock *fl)
423 struct file_lock *fl)
/linux-master/fs/
H A Dfile.c167 * The files->file_lock should be held on entry, and will be held on exit.
170 __releases(files->file_lock)
171 __acquires(files->file_lock)
175 spin_unlock(&files->file_lock);
184 spin_lock(&files->file_lock);
212 * The files->file_lock should be held on entry, and will be held on exit.
215 __releases(files->file_lock)
216 __acquires(files->file_lock)
233 spin_unlock(&files->file_lock);
236 spin_lock(&files->file_lock);
[all...]
H A Dlocks.c72 static struct file_lock *file_lock(struct file_lock_core *flc) function
74 return container_of(flc, struct file_lock, c);
162 * fl->fl_blocker pointer for file_lock structures that are acting as lock
273 struct file_lock *locks_alloc_lock(void)
275 struct file_lock *fl = kmem_cache_zalloc(filelock_cache, GFP_KERNEL);
296 void locks_release_private(struct file_lock *fl)
350 void locks_free_lock(struct file_lock *fl)
375 locks_free_lock(file_lock(flc));
379 void locks_init_lock(struct file_lock *f
2405 struct file_lock *file_lock = locks_alloc_lock(); local
2529 struct file_lock *file_lock = locks_alloc_lock(); local
[all...]
/linux-master/fs/fuse/
H A Dfile.c2595 struct file_lock *fl)
2627 const struct file_lock *fl, int opcode, pid_t pid,
2650 static int fuse_getlk(struct file *file, struct file_lock *fl)
2670 static int fuse_setlk(struct file *file, struct file_lock *fl, int flock)
2696 static int fuse_file_lock(struct file *file, int cmd, struct file_lock *fl)
2719 static int fuse_file_flock(struct file *file, int cmd, struct file_lock *fl)
/linux-master/fs/gfs2/
H A Dfile.c1437 static int gfs2_lock(struct file *file, int cmd, struct file_lock *fl)
1475 static int do_flock(struct file *file, int cmd, struct file_lock *fl)
1494 struct file_lock request;
1535 static void do_unflock(struct file *file, struct file_lock *fl)
1558 static int gfs2_flock(struct file *file, int cmd, struct file_lock *fl)
/linux-master/fs/lockd/
H A Dclnt4xdr.c68 const struct file_lock *fl = &lock->fl;
259 struct file_lock *fl = &lock->fl;
H A Dclntlock.c88 void nlmclnt_prepare_block(struct nlm_wait *block, struct nlm_host *host, struct file_lock *fl)
163 const struct file_lock *fl = &lock->fl;
174 struct file_lock *fl_blocked = block->b_lock;
232 struct file_lock *fl, *next;
H A Dclntproc.c30 static int nlmclnt_test(struct nlm_rqst *, struct file_lock *);
31 static int nlmclnt_lock(struct nlm_rqst *, struct file_lock *);
32 static int nlmclnt_unlock(struct nlm_rqst *, struct file_lock *);
34 static void nlmclnt_locks_init_private(struct file_lock *fl, struct nlm_host *host);
35 static int nlmclnt_cancel(struct nlm_host *, int , struct file_lock *);
129 static void nlmclnt_setlockargs(struct nlm_rqst *req, struct file_lock *fl)
162 int nlmclnt_proc(struct nlm_host *host, int cmd, struct file_lock *fl, void *data)
432 nlmclnt_test(struct nlm_rqst *req, struct file_lock *fl)
465 static void nlmclnt_locks_copy_lock(struct file_lock *new, struct file_lock *f
[all...]
H A Dclntxdr.c64 const struct file_lock *fl = &lock->fl;
254 struct file_lock *fl = &lock->fl;
H A Dsvclock.c150 struct file_lock *fl;
410 void nlmsvc_locks_init_private(struct file_lock *fl, struct nlm_host *host,
726 struct file_lock *fl = &block->b_call->a_args.lock.fl;
755 static int nlmsvc_grant_deferred(struct file_lock *fl, int result)
794 nlmsvc_notify_blocked(struct file_lock *fl)
981 struct file_lock *fl;
H A Dsvcsubs.c74 int lock_to_openmode(struct file_lock *lock)
179 static int nlm_unlock_files(struct nlm_file *file, const struct file_lock *fl)
181 struct file_lock lock;
212 struct file_lock *fl;
267 struct file_lock *fl;
H A Dxdr.c74 struct file_lock *fl = &lock->fl;
106 const struct file_lock *fl = &lock->fl;
H A Dxdr4.c36 void nlm4svc_set_file_lock_range(struct file_lock *fl, u64 off, u64 len)
76 struct file_lock *fl = &lock->fl;
101 const struct file_lock *fl = &lock->fl;
/linux-master/fs/nfs/
H A Ddelegation.c148 struct file_lock *fl;
H A Ddelegation.h72 int nfs4_lock_delegation_recall(struct file_lock *fl, struct nfs4_state *state, const nfs4_stateid *stateid);
H A Dfile.c719 do_getlk(struct file *filp, int cmd, struct file_lock *fl, int is_local)
748 do_unlk(struct file *filp, int cmd, struct file_lock *fl, int is_local)
784 do_setlk(struct file *filp, int cmd, struct file_lock *fl, int is_local)
828 int nfs_lock(struct file *filp, int cmd, struct file_lock *fl)
866 int nfs_flock(struct file *filp, int cmd, struct file_lock *fl)

Completed in 310 milliseconds

123