Symbol: file_lock
drivers/fsi/fsi-sbefifo.c
1000
mutex_unlock(&user->file_lock);
drivers/fsi/fsi-sbefifo.c
136
struct mutex file_lock;
drivers/fsi/fsi-sbefifo.c
806
mutex_init(&user->file_lock);
drivers/fsi/fsi-sbefifo.c
829
mutex_lock(&user->file_lock);
drivers/fsi/fsi-sbefifo.c
864
mutex_unlock(&user->file_lock);
drivers/fsi/fsi-sbefifo.c
883
mutex_lock(&user->file_lock);
drivers/fsi/fsi-sbefifo.c
925
mutex_unlock(&user->file_lock);
drivers/fsi/fsi-sbefifo.c
991
mutex_lock(&user->file_lock);
drivers/misc/genwqe/card_base.c
160
spin_lock_init(&cd->file_lock);
drivers/misc/genwqe/card_base.h
315
spinlock_t file_lock; /* lock for open files */
drivers/misc/genwqe/card_dev.c
264
spin_lock_irqsave(&cd->file_lock, flags);
drivers/misc/genwqe/card_dev.c
270
spin_unlock_irqrestore(&cd->file_lock, flags);
drivers/misc/genwqe/card_dev.c
280
spin_lock_irqsave(&cd->file_lock, flags);
drivers/misc/genwqe/card_dev.c
285
spin_unlock_irqrestore(&cd->file_lock, flags);
drivers/misc/genwqe/card_dev.c
37
spin_lock_irqsave(&cd->file_lock, flags);
drivers/misc/genwqe/card_dev.c
39
spin_unlock_irqrestore(&cd->file_lock, flags);
drivers/misc/genwqe/card_dev.c
48
spin_lock_irqsave(&cd->file_lock, flags);
drivers/misc/genwqe/card_dev.c
50
spin_unlock_irqrestore(&cd->file_lock, flags);
drivers/misc/genwqe/card_dev.c
57
spin_lock_irqsave(&cd->file_lock, flags);
drivers/misc/genwqe/card_dev.c
59
spin_unlock_irqrestore(&cd->file_lock, flags);
fs/9p/vfs_file.c
109
static int v9fs_file_lock(struct file *filp, int cmd, struct file_lock *fl)
fs/9p/vfs_file.c
123
static int v9fs_file_do_lock(struct file *filp, int cmd, struct file_lock *fl)
fs/9p/vfs_file.c
228
static int v9fs_file_getlock(struct file *filp, struct file_lock *fl)
fs/9p/vfs_file.c
293
static int v9fs_file_lock_dotl(struct file *filp, int cmd, struct file_lock *fl)
fs/9p/vfs_file.c
324
struct file_lock *fl)
fs/afs/flock.c
113
struct file_lock *p, *_p, *next = NULL;
fs/afs/flock.c
159
struct file_lock *p;
fs/afs/flock.c
165
struct file_lock, fl_u.afs.link);
fs/afs/flock.c
17
static void afs_fl_copy_lock(struct file_lock *new, struct file_lock *fl);
fs/afs/flock.c
18
static void afs_fl_release_private(struct file_lock *fl);
fs/afs/flock.c
451
static int afs_do_setlk(struct file *file, struct file_lock *fl)
fs/afs/flock.c
701
static int afs_do_unlk(struct file *file, struct file_lock *fl)
fs/afs/flock.c
722
static int afs_do_getlk(struct file *file, struct file_lock *fl)
fs/afs/flock.c
764
int afs_lock(struct file *file, int cmd, struct file_lock *fl)
fs/afs/flock.c
799
int afs_flock(struct file *file, int cmd, struct file_lock *fl)
fs/afs/flock.c
844
static void afs_fl_copy_lock(struct file_lock *new, struct file_lock *fl)
fs/afs/flock.c
862
static void afs_fl_release_private(struct file_lock *fl)
fs/afs/flock.c
92
struct file_lock *p, *_p;
fs/afs/internal.h
1170
extern int afs_lock(struct file *, int, struct file_lock *);
fs/afs/internal.h
1171
extern int afs_flock(struct file *, int, struct file_lock *);
fs/ceph/locks.c
231
static int try_unlock_file(struct file *file, struct file_lock *fl)
fs/ceph/locks.c
250
int ceph_lock(struct file *file, int cmd, struct file_lock *fl)
fs/ceph/locks.c
317
int ceph_flock(struct file *file, int cmd, struct file_lock *fl)
fs/ceph/locks.c
34
static void ceph_fl_copy_lock(struct file_lock *dst, struct file_lock *src)
fs/ceph/locks.c
383
struct file_lock *lock;
fs/ceph/locks.c
406
struct file_lock *lock,
fs/ceph/locks.c
446
struct file_lock *lock;
fs/ceph/locks.c
45
static void ceph_fl_release_lock(struct file_lock *fl)
fs/ceph/locks.c
77
int cmd, u8 wait, struct file_lock *fl)
fs/ceph/super.h
1375
extern int ceph_lock(struct file *file, int cmd, struct file_lock *fl);
fs/ceph/super.h
1376
extern int ceph_flock(struct file *file, int cmd, struct file_lock *fl);
fs/dlm/plock.c
123
int cmd, struct file_lock *fl)
fs/dlm/plock.c
242
struct file_lock *fl;
fs/dlm/plock.c
243
struct file_lock *flc;
fs/dlm/plock.c
244
int (*notify)(struct file_lock *fl, int result) = NULL;
fs/dlm/plock.c
28
struct file_lock flc;
fs/dlm/plock.c
289
struct file_lock *fl)
fs/dlm/plock.c
29
int (*callback)(struct file_lock *fl, int result);
fs/dlm/plock.c
360
struct file_lock *fl)
fs/dlm/plock.c
423
struct file_lock *fl)
fs/file.c
1280
spin_lock(&files->file_lock);
fs/file.c
1282
spin_unlock(&files->file_lock);
fs/file.c
1296
__releases(&files->file_lock)
fs/file.c
1335
spin_unlock(&files->file_lock);
fs/file.c
1343
spin_unlock(&files->file_lock);
fs/file.c
1358
spin_lock(&files->file_lock);
fs/file.c
1368
spin_unlock(&files->file_lock);
fs/file.c
1440
spin_lock(&files->file_lock);
fs/file.c
1455
spin_unlock(&files->file_lock);
fs/file.c
1520
spin_lock(&files->file_lock);
fs/file.c
1530
spin_unlock(&files->file_lock);
fs/file.c
253
__releases(files->file_lock)
fs/file.c
254
__acquires(files->file_lock)
fs/file.c
258
spin_unlock(&files->file_lock);
fs/file.c
267
spin_lock(&files->file_lock);
fs/file.c
289
__releases(files->file_lock)
fs/file.c
290
__acquires(files->file_lock)
fs/file.c
303
spin_unlock(&files->file_lock);
fs/file.c
305
spin_lock(&files->file_lock);
fs/file.c
396
spin_lock_init(&newf->file_lock);
fs/file.c
407
spin_lock(&oldf->file_lock);
fs/file.c
415
spin_unlock(&oldf->file_lock);
fs/file.c
431
spin_lock(&oldf->file_lock);
fs/file.c
464
spin_unlock(&oldf->file_lock);
fs/file.c
540
.file_lock = __SPIN_LOCK_UNLOCKED(init_files.file_lock),
fs/file.c
577
spin_lock(&files->file_lock);
fs/file.c
611
spin_unlock(&files->file_lock);
fs/file.c
637
spin_lock(&files->file_lock);
fs/file.c
639
spin_unlock(&files->file_lock);
fs/file.c
665
spin_lock(&files->file_lock);
fs/file.c
669
spin_unlock(&files->file_lock);
fs/file.c
720
lockdep_assert_held(&files->file_lock);
fs/file.c
739
spin_lock(&files->file_lock);
fs/file.c
741
spin_unlock(&files->file_lock);
fs/file.c
768
spin_lock(&cur_fds->file_lock);
fs/file.c
773
spin_unlock(&cur_fds->file_lock);
fs/file.c
783
spin_lock(&files->file_lock);
fs/file.c
793
spin_unlock(&files->file_lock);
fs/file.c
796
spin_lock(&files->file_lock);
fs/file.c
799
spin_unlock(&files->file_lock);
fs/file.c
801
spin_lock(&files->file_lock);
fs/file.c
805
spin_unlock(&files->file_lock);
fs/file.c
884
spin_lock(&files->file_lock);
fs/file.c
886
spin_unlock(&files->file_lock);
fs/file.c
897
spin_lock(&files->file_lock);
fs/file.c
917
spin_unlock(&files->file_lock);
fs/file.c
920
spin_lock(&files->file_lock);
fs/file.c
924
spin_unlock(&files->file_lock);
fs/fuse/file.c
2430
struct file_lock *fl)
fs/fuse/file.c
2462
const struct file_lock *fl, int opcode, pid_t pid,
fs/fuse/file.c
2485
static int fuse_getlk(struct file *file, struct file_lock *fl)
fs/fuse/file.c
2505
static int fuse_setlk(struct file *file, struct file_lock *fl, int flock)
fs/fuse/file.c
2531
static int fuse_file_lock(struct file *file, int cmd, struct file_lock *fl)
fs/fuse/file.c
2554
static int fuse_file_flock(struct file *file, int cmd, struct file_lock *fl)
fs/gfs2/file.c
1440
static int gfs2_lock(struct file *file, int cmd, struct file_lock *fl)
fs/gfs2/file.c
1485
static int do_flock(struct file *file, int cmd, struct file_lock *fl)
fs/gfs2/file.c
1504
struct file_lock request;
fs/gfs2/file.c
1545
static void do_unflock(struct file *file, struct file_lock *fl)
fs/gfs2/file.c
1568
static int gfs2_flock(struct file *file, int cmd, struct file_lock *fl)
fs/lockd/clnt4xdr.c
259
struct file_lock *fl = &lock->fl;
fs/lockd/clnt4xdr.c
68
const struct file_lock *fl = &lock->fl;
fs/lockd/clntlock.c
163
const struct file_lock *fl = &lock->fl;
fs/lockd/clntlock.c
174
struct file_lock *fl_blocked = block->b_lock;
fs/lockd/clntlock.c
232
struct file_lock *fl, *next;
fs/lockd/clntlock.c
88
void nlmclnt_prepare_block(struct nlm_wait *block, struct nlm_host *host, struct file_lock *fl)
fs/lockd/clntproc.c
129
static void nlmclnt_setlockargs(struct nlm_rqst *req, struct file_lock *fl)
fs/lockd/clntproc.c
162
int nlmclnt_proc(struct nlm_host *host, int cmd, struct file_lock *fl, void *data)
fs/lockd/clntproc.c
30
static int nlmclnt_test(struct nlm_rqst *, struct file_lock *);
fs/lockd/clntproc.c
31
static int nlmclnt_lock(struct nlm_rqst *, struct file_lock *);
fs/lockd/clntproc.c
32
static int nlmclnt_unlock(struct nlm_rqst *, struct file_lock *);
fs/lockd/clntproc.c
34
static void nlmclnt_locks_init_private(struct file_lock *fl, struct nlm_host *host);
fs/lockd/clntproc.c
35
static int nlmclnt_cancel(struct nlm_host *, int , struct file_lock *);
fs/lockd/clntproc.c
432
nlmclnt_test(struct nlm_rqst *req, struct file_lock *fl)
fs/lockd/clntproc.c
465
static void nlmclnt_locks_copy_lock(struct file_lock *new, struct file_lock *fl)
fs/lockd/clntproc.c
474
static void nlmclnt_locks_release_private(struct file_lock *fl)
fs/lockd/clntproc.c
487
static void nlmclnt_locks_init_private(struct file_lock *fl, struct nlm_host *host)
fs/lockd/clntproc.c
496
static int do_vfs_lock(struct file_lock *fl)
fs/lockd/clntproc.c
522
nlmclnt_lock(struct nlm_rqst *req, struct file_lock *fl)
fs/lockd/clntproc.c
643
nlmclnt_reclaim(struct nlm_host *host, struct file_lock *fl,
fs/lockd/clntproc.c
686
nlmclnt_unlock(struct nlm_rqst *req, struct file_lock *fl)
fs/lockd/clntproc.c
786
static int nlmclnt_cancel(struct nlm_host *host, int block, struct file_lock *fl)
fs/lockd/clntxdr.c
255
struct file_lock *fl = &lock->fl;
fs/lockd/clntxdr.c
65
const struct file_lock *fl = &lock->fl;
fs/lockd/svclock.c
149
struct file_lock *fl;
fs/lockd/svclock.c
409
void nlmsvc_locks_init_private(struct file_lock *fl, struct nlm_host *host,
fs/lockd/svclock.c
736
struct file_lock *fl = &block->b_call->a_args.lock.fl;
fs/lockd/svclock.c
765
static int nlmsvc_grant_deferred(struct file_lock *fl, int result)
fs/lockd/svclock.c
804
nlmsvc_notify_blocked(struct file_lock *fl)
fs/lockd/svclock.c
991
struct file_lock *fl;
fs/lockd/svcsubs.c
179
static int nlm_unlock_files(struct nlm_file *file, const struct file_lock *fl)
fs/lockd/svcsubs.c
181
struct file_lock lock;
fs/lockd/svcsubs.c
212
struct file_lock *fl;
fs/lockd/svcsubs.c
267
struct file_lock *fl;
fs/lockd/svcsubs.c
74
int lock_to_openmode(struct file_lock *lock)
fs/lockd/xdr.c
106
const struct file_lock *fl = &lock->fl;
fs/lockd/xdr.c
74
struct file_lock *fl = &lock->fl;
fs/lockd/xdr4.c
100
const struct file_lock *fl = &lock->fl;
fs/lockd/xdr4.c
36
void nlm4svc_set_file_lock_range(struct file_lock *fl, u64 off, u64 len)
fs/lockd/xdr4.c
76
struct file_lock *fl = &lock->fl;
fs/locks.c
1011
posix_test_lock(struct file *filp, struct file_lock *fl)
fs/locks.c
1013
struct file_lock *cfl;
fs/locks.c
1101
static bool posix_locks_deadlock(struct file_lock *caller_fl,
fs/locks.c
1102
struct file_lock *block_fl)
fs/locks.c
1133
static int flock_lock_inode(struct inode *inode, struct file_lock *request)
fs/locks.c
1135
struct file_lock *new_fl = NULL;
fs/locks.c
1136
struct file_lock *fl;
fs/locks.c
1205
static int posix_lock_inode(struct inode *inode, struct file_lock *request,
fs/locks.c
1206
struct file_lock *conflock)
fs/locks.c
1208
struct file_lock *fl, *tmp;
fs/locks.c
1209
struct file_lock *new_fl = NULL;
fs/locks.c
1210
struct file_lock *new_fl2 = NULL;
fs/locks.c
1211
struct file_lock *left = NULL;
fs/locks.c
1212
struct file_lock *right = NULL;
fs/locks.c
1458
int posix_lock_file(struct file *filp, struct file_lock *fl,
fs/locks.c
1459
struct file_lock *conflock)
fs/locks.c
1472
static int posix_lock_inode_wait(struct inode *inode, struct file_lock *fl)
fs/locks.c
2142
static int flock_lock_inode_wait(struct inode *inode, struct file_lock *fl)
fs/locks.c
2166
int locks_lock_inode_wait(struct inode *inode, struct file_lock *fl)
fs/locks.c
2201
struct file_lock fl;
fs/locks.c
2263
int vfs_test_lock(struct file *filp, struct file_lock *fl)
fs/locks.c
2319
static int posix_lock_to_flock(struct flock *flock, struct file_lock *fl)
fs/locks.c
2341
static void posix_lock_to_flock64(struct flock64 *flock, struct file_lock *fl)
fs/locks.c
2357
struct file_lock *fl;
fs/locks.c
2431
int vfs_lock_file(struct file *filp, unsigned int cmd, struct file_lock *fl, struct file_lock *conf)
fs/locks.c
2442
struct file_lock *fl)
fs/locks.c
2466
check_fmode_for_setlk(struct file_lock *fl)
fs/locks.c
2486
struct file_lock *file_lock = locks_alloc_lock();
fs/locks.c
2491
if (file_lock == NULL)
fs/locks.c
2494
error = flock_to_posix_lock(filp, file_lock, flock);
fs/locks.c
2498
error = check_fmode_for_setlk(file_lock);
fs/locks.c
2513
file_lock->c.flc_flags |= FL_OFDLCK;
fs/locks.c
2514
file_lock->c.flc_owner = filp;
fs/locks.c
2522
file_lock->c.flc_flags |= FL_OFDLCK;
fs/locks.c
2523
file_lock->c.flc_owner = filp;
fs/locks.c
2526
file_lock->c.flc_flags |= FL_SLEEP;
fs/locks.c
2529
error = do_lock_file_wait(filp, cmd, file_lock);
fs/locks.c
2537
if (!error && file_lock->c.flc_type != F_UNLCK &&
fs/locks.c
2538
!(file_lock->c.flc_flags & FL_OFDLCK)) {
fs/locks.c
2545
spin_lock(&files->file_lock);
fs/locks.c
2547
spin_unlock(&files->file_lock);
fs/locks.c
2554
trace_fcntl_setlk(inode, file_lock, error);
fs/locks.c
2555
locks_free_lock(file_lock);
fs/locks.c
2565
struct file_lock *fl;
fs/locks.c
2609
struct file_lock *file_lock = locks_alloc_lock();
fs/locks.c
2613
if (file_lock == NULL)
fs/locks.c
2616
error = flock64_to_posix_lock(filp, file_lock, flock);
fs/locks.c
2620
error = check_fmode_for_setlk(file_lock);
fs/locks.c
2635
file_lock->c.flc_flags |= FL_OFDLCK;
fs/locks.c
2636
file_lock->c.flc_owner = filp;
fs/locks.c
2644
file_lock->c.flc_flags |= FL_OFDLCK;
fs/locks.c
2645
file_lock->c.flc_owner = filp;
fs/locks.c
2648
file_lock->c.flc_flags |= FL_SLEEP;
fs/locks.c
2651
error = do_lock_file_wait(filp, cmd, file_lock);
fs/locks.c
2659
if (!error && file_lock->c.flc_type != F_UNLCK &&
fs/locks.c
2660
!(file_lock->c.flc_flags & FL_OFDLCK)) {
fs/locks.c
2667
spin_lock(&files->file_lock);
fs/locks.c
2669
spin_unlock(&files->file_lock);
fs/locks.c
2676
locks_free_lock(file_lock);
fs/locks.c
2690
struct file_lock lock;
fs/locks.c
2725
struct file_lock fl;
fs/locks.c
2798
int vfs_cancel_lock(struct file *filp, struct file_lock *fl)
fs/locks.c
283
struct file_lock *locks_alloc_lock(void)
fs/locks.c
2846
struct file_lock *fl = file_lock(flc);
fs/locks.c
285
struct file_lock *fl = kmem_cache_zalloc(filelock_cache, GFP_KERNEL);
fs/locks.c
306
void locks_release_private(struct file_lock *fl)
fs/locks.c
3066
sizeof(struct file_lock), 0, SLAB_PANIC, NULL);
fs/locks.c
360
void locks_free_lock(struct file_lock *fl)
fs/locks.c
382
locks_free_lock(file_lock(flc));
fs/locks.c
398
void locks_init_lock(struct file_lock *fl)
fs/locks.c
400
memset(fl, 0, sizeof(struct file_lock));
fs/locks.c
415
void locks_copy_conflock(struct file_lock *new, struct file_lock *fl)
fs/locks.c
434
void locks_copy_lock(struct file_lock *new, struct file_lock *fl)
fs/locks.c
451
static void locks_move_blocks(struct file_lock *new, struct file_lock *fl)
fs/locks.c
453
struct file_lock *f;
fs/locks.c
484
static void flock_make_lock(struct file *filp, struct file_lock *fl, int type)
fs/locks.c
510
static int flock64_to_posix_lock(struct file *filp, struct file_lock *fl,
fs/locks.c
560
static int flock_to_posix_lock(struct file *filp, struct file_lock *fl,
fs/locks.c
680
static inline int locks_overlap(struct file_lock *fl1, struct file_lock *fl2)
fs/locks.c
72
static struct file_lock *file_lock(struct file_lock_core *flc)
fs/locks.c
74
return container_of(flc, struct file_lock, c);
fs/locks.c
763
struct file_lock *fl;
fs/locks.c
768
fl = file_lock(waiter);
fs/locks.c
835
int locks_delete_block(struct file_lock *waiter)
fs/locks.c
939
locks_free_lock(file_lock(fl));
fs/locks.c
961
struct file_lock *caller_fl = file_lock(caller_flc);
fs/locks.c
962
struct file_lock *sys_fl = file_lock(sys_flc);
fs/locks.c
980
static bool posix_test_locks_conflict(struct file_lock *caller_fl,
fs/locks.c
981
struct file_lock *sys_fl)
fs/nfs/delegation.c
176
struct file_lock *fl;
fs/nfs/delegation.h
77
int nfs4_lock_delegation_recall(struct file_lock *fl, struct nfs4_state *state, const nfs4_stateid *stateid);
fs/nfs/file.c
784
do_getlk(struct file *filp, int cmd, struct file_lock *fl, int is_local)
fs/nfs/file.c
813
do_unlk(struct file *filp, int cmd, struct file_lock *fl, int is_local)
fs/nfs/file.c
849
do_setlk(struct file *filp, int cmd, struct file_lock *fl, int is_local)
fs/nfs/file.c
893
int nfs_lock(struct file *filp, int cmd, struct file_lock *fl)
fs/nfs/file.c
931
int nfs_flock(struct file *filp, int cmd, struct file_lock *fl)
fs/nfs/internal.h
432
int nfs_lock(struct file *, int, struct file_lock *);
fs/nfs/internal.h
433
int nfs_flock(struct file *, int, struct file_lock *);
fs/nfs/nfs3proc.c
1007
nfs3_proc_lock(struct file *filp, int cmd, struct file_lock *fl)
fs/nfs/nfs4_fs.h
228
int (*recover_lock)(struct nfs4_state *, struct file_lock *);
fs/nfs/nfs4_fs.h
373
extern int nfs4_lock_reclaim(struct nfs4_state *state, struct file_lock *request);
fs/nfs/nfs4_fs.h
374
extern int nfs4_lock_expired(struct nfs4_state *state, struct file_lock *request);
fs/nfs/nfs4_fs.h
523
extern int nfs4_set_lock_state(struct nfs4_state *state, struct file_lock *fl);
fs/nfs/nfs4proc.c
2293
static int nfs4_handle_delegation_recall_error(struct nfs_server *server, struct nfs4_state *state, const nfs4_stateid *stateid, struct file_lock *fl, int err)
fs/nfs/nfs4proc.c
6913
static int _nfs4_proc_getlk(struct nfs4_state *state, int cmd, struct file_lock *request)
fs/nfs/nfs4proc.c
6955
static int nfs4_proc_getlk(struct nfs4_state *state, int cmd, struct file_lock *request)
fs/nfs/nfs4proc.c
7013
struct file_lock fl;
fs/nfs/nfs4proc.c
7019
static struct nfs4_unlockdata *nfs4_alloc_unlockdata(struct file_lock *fl,
fs/nfs/nfs4proc.c
7145
static struct rpc_task *nfs4_do_unlck(struct file_lock *fl,
fs/nfs/nfs4proc.c
7190
static int nfs4_proc_unlck(struct nfs4_state *state, int cmd, struct file_lock *request)
fs/nfs/nfs4proc.c
7247
struct file_lock fl;
fs/nfs/nfs4proc.c
7254
static struct nfs4_lockdata *nfs4_alloc_lockdata(struct file_lock *fl,
fs/nfs/nfs4proc.c
7429
static int _nfs4_do_setlk(struct nfs4_state *state, int cmd, struct file_lock *fl, int recovery_type)
fs/nfs/nfs4proc.c
7484
int nfs4_lock_reclaim(struct nfs4_state *state, struct file_lock *request)
fs/nfs/nfs4proc.c
7504
int nfs4_lock_expired(struct nfs4_state *state, struct file_lock *request)
fs/nfs/nfs4proc.c
7536
static int nfs41_lock_expired(struct nfs4_state *state, struct file_lock *request)
fs/nfs/nfs4proc.c
7551
static int _nfs4_proc_setlk(struct nfs4_state *state, int cmd, struct file_lock *request)
fs/nfs/nfs4proc.c
7581
static int nfs4_proc_setlk(struct nfs4_state *state, int cmd, struct file_lock *request)
fs/nfs/nfs4proc.c
7605
struct file_lock *request)
fs/nfs/nfs4proc.c
7654
nfs4_retry_setlk(struct nfs4_state *state, int cmd, struct file_lock *request)
fs/nfs/nfs4proc.c
7692
nfs4_proc_lock(struct file *filp, int cmd, struct file_lock *request)
fs/nfs/nfs4proc.c
7782
int nfs4_lock_delegation_recall(struct file_lock *fl, struct nfs4_state *state, const nfs4_stateid *stateid)
fs/nfs/nfs4state.c
1433
struct file_lock *fl;
fs/nfs/nfs4state.c
895
static void nfs4_fl_copy_lock(struct file_lock *dst, struct file_lock *src)
fs/nfs/nfs4state.c
903
static void nfs4_fl_release_lock(struct file_lock *fl)
fs/nfs/nfs4state.c
913
int nfs4_set_lock_state(struct nfs4_state *state, struct file_lock *fl)
fs/nfs/nfs4trace.h
732
const struct file_lock *request,
fs/nfs/nfs4trace.h
790
const struct file_lock *request, \
fs/nfs/nfs4trace.h
801
const struct file_lock *request,
fs/nfs/nfs4xdr.c
1309
static inline int nfs4_lock_type(struct file_lock *fl, int block)
fs/nfs/nfs4xdr.c
1316
static inline uint64_t nfs4_lock_length(struct file_lock *fl)
fs/nfs/nfs4xdr.c
5114
static int decode_lock_denied(struct xdr_stream *xdr, struct file_lock *fl)
fs/nfs/proc.c
664
nfs_proc_lock(struct file *filp, int cmd, struct file_lock *fl)
fs/nfs/proc.c
673
static int nfs_lock_check_bounds(const struct file_lock *fl)
fs/nfs/write.c
1234
is_whole_file_wrlock(struct file_lock *fl)
fs/nfs/write.c
1253
struct file_lock *fl;
fs/nfs/write.c
1273
fl = list_first_entry(&flctx->flc_posix, struct file_lock,
fs/nfs/write.c
1278
fl = list_first_entry(&flctx->flc_flock, struct file_lock,
fs/nfsd/nfs4state.c
7938
nfs4_transform_lock_offset(struct file_lock *lock)
fs/nfsd/nfs4state.c
7966
nfsd4_lm_lock_expirable(struct file_lock *cfl)
fs/nfsd/nfs4state.c
7988
nfsd4_lm_notify(struct file_lock *fl)
fs/nfsd/nfs4state.c
8022
nfs4_set_lock_denied(struct file_lock *fl, struct nfsd4_lock_denied *deny)
fs/nfsd/nfs4state.c
8305
struct file_lock *file_lock = NULL;
fs/nfsd/nfs4state.c
8306
struct file_lock *conflock = NULL;
fs/nfsd/nfs4state.c
8423
file_lock = &nbl->nbl_lock;
fs/nfsd/nfs4state.c
8424
file_lock->c.flc_type = type;
fs/nfsd/nfs4state.c
8425
file_lock->c.flc_owner = (fl_owner_t)lockowner(nfs4_get_stateowner(&lock_sop->lo_owner));
fs/nfsd/nfs4state.c
8426
file_lock->c.flc_pid = current->tgid;
fs/nfsd/nfs4state.c
8427
file_lock->c.flc_file = nf->nf_file;
fs/nfsd/nfs4state.c
8428
file_lock->c.flc_flags = flags;
fs/nfsd/nfs4state.c
8429
file_lock->fl_lmops = &nfsd_posix_mng_ops;
fs/nfsd/nfs4state.c
8430
file_lock->fl_start = lock->lk_offset;
fs/nfsd/nfs4state.c
8431
file_lock->fl_end = last_byte_offset(lock->lk_offset, lock->lk_length);
fs/nfsd/nfs4state.c
8432
nfs4_transform_lock_offset(file_lock);
fs/nfsd/nfs4state.c
8450
err = vfs_lock_file(nf->nf_file, F_SETLK, file_lock, conflock);
fs/nfsd/nfs4state.c
8532
static __be32 nfsd_test_lock(struct svc_rqst *rqstp, struct svc_fh *fhp, struct file_lock *lock)
fs/nfsd/nfs4state.c
8563
struct file_lock *file_lock = NULL;
fs/nfsd/nfs4state.c
8583
file_lock = locks_alloc_lock();
fs/nfsd/nfs4state.c
8584
if (!file_lock) {
fs/nfsd/nfs4state.c
8593
file_lock->c.flc_type = F_RDLCK;
fs/nfsd/nfs4state.c
8597
file_lock->c.flc_type = F_WRLCK;
fs/nfsd/nfs4state.c
8607
file_lock->c.flc_owner = (fl_owner_t)lo;
fs/nfsd/nfs4state.c
8608
file_lock->c.flc_pid = current->tgid;
fs/nfsd/nfs4state.c
8609
file_lock->c.flc_flags = FL_POSIX;
fs/nfsd/nfs4state.c
8611
file_lock->fl_start = lockt->lt_offset;
fs/nfsd/nfs4state.c
8612
file_lock->fl_end = last_byte_offset(lockt->lt_offset, lockt->lt_length);
fs/nfsd/nfs4state.c
8614
nfs4_transform_lock_offset(file_lock);
fs/nfsd/nfs4state.c
8616
status = nfsd_test_lock(rqstp, &cstate->current_fh, file_lock);
fs/nfsd/nfs4state.c
8620
if (file_lock->c.flc_type != F_UNLCK) {
fs/nfsd/nfs4state.c
8622
nfs4_set_lock_denied(file_lock, &lockt->lt_denied);
fs/nfsd/nfs4state.c
8627
if (file_lock)
fs/nfsd/nfs4state.c
8628
locks_free_lock(file_lock);
fs/nfsd/nfs4state.c
8647
struct file_lock *file_lock = NULL;
fs/nfsd/nfs4state.c
8674
file_lock = locks_alloc_lock();
fs/nfsd/nfs4state.c
8675
if (!file_lock) {
fs/nfsd/nfs4state.c
8681
file_lock->c.flc_type = F_UNLCK;
fs/nfsd/nfs4state.c
8682
file_lock->c.flc_owner = (fl_owner_t)lockowner(nfs4_get_stateowner(stp->st_stateowner));
fs/nfsd/nfs4state.c
8683
file_lock->c.flc_pid = current->tgid;
fs/nfsd/nfs4state.c
8684
file_lock->c.flc_file = nf->nf_file;
fs/nfsd/nfs4state.c
8685
file_lock->c.flc_flags = FL_POSIX;
fs/nfsd/nfs4state.c
8686
file_lock->fl_lmops = &nfsd_posix_mng_ops;
fs/nfsd/nfs4state.c
8687
file_lock->fl_start = locku->lu_offset;
fs/nfsd/nfs4state.c
8689
file_lock->fl_end = last_byte_offset(locku->lu_offset,
fs/nfsd/nfs4state.c
8691
nfs4_transform_lock_offset(file_lock);
fs/nfsd/nfs4state.c
8693
err = vfs_lock_file(nf->nf_file, F_SETLK, file_lock, NULL);
fs/nfsd/nfs4state.c
8706
if (file_lock)
fs/nfsd/nfs4state.c
8707
locks_free_lock(file_lock);
fs/nfsd/nfs4state.c
8723
struct file_lock *fl;
fs/nfsd/state.h
782
struct file_lock nbl_lock;
fs/ocfs2/locks.c
116
int ocfs2_lock(struct file *file, int cmd, struct file_lock *fl)
fs/ocfs2/locks.c
24
int cmd, struct file_lock *fl)
fs/ocfs2/locks.c
40
struct file_lock request;
fs/ocfs2/locks.c
82
static int ocfs2_do_funlock(struct file *file, int cmd, struct file_lock *fl)
fs/ocfs2/locks.c
98
int ocfs2_flock(struct file *file, int cmd, struct file_lock *fl)
fs/ocfs2/locks.h
13
int ocfs2_flock(struct file *file, int cmd, struct file_lock *fl);
fs/ocfs2/locks.h
14
int ocfs2_lock(struct file *file, int cmd, struct file_lock *fl);
fs/ocfs2/ocfs1_fs_compat.h
64
__u8 file_lock;
fs/ocfs2/stack_user.c
726
struct file_lock *fl)
fs/ocfs2/stackglue.c
293
struct file *file, int cmd, struct file_lock *fl)
fs/ocfs2/stackglue.h
210
struct file_lock *fl);
fs/ocfs2/stackglue.h
23
struct file_lock;
fs/ocfs2/stackglue.h
282
struct file *file, int cmd, struct file_lock *fl);
fs/orangefs/file.c
538
static int orangefs_lock(struct file *filp, int cmd, struct file_lock *fl)
fs/proc/fd.c
39
spin_lock(&files->file_lock);
fs/proc/fd.c
49
spin_unlock(&files->file_lock);
fs/smb/client/cifsfs.h
102
int cifs_flock(struct file *file, int cmd, struct file_lock *fl);
fs/smb/client/cifsfs.h
103
int cifs_lock(struct file *file, int cmd, struct file_lock *flock);
fs/smb/client/cifsglob.h
2213
static inline u64 cifs_flock_len(const struct file_lock *fl)
fs/smb/client/cifsglob.h
530
int (*mand_unlock_range)(struct cifsFileInfo *, struct file_lock *,
fs/smb/client/cifsproto.h
164
int cifs_unlock_range(struct cifsFileInfo *cfile, struct file_lock *flock,
fs/smb/client/cifssmb.c
2270
struct file_lock *pLockData, const __u16 lock_type,
fs/smb/client/file.c
1658
__u8 type, struct file_lock *flock)
fs/smb/client/file.c
1754
cifs_posix_lock_test(struct file *file, struct file_lock *flock)
fs/smb/client/file.c
1783
cifs_posix_lock_set(struct file *file, struct file_lock *flock)
fs/smb/client/file.c
1901
struct file_lock *flock;
fs/smb/client/file.c
2019
cifs_read_flock(struct file_lock *flock, __u32 *type, int *lock, int *unlock,
fs/smb/client/file.c
2067
cifs_getlk(struct file *file, struct file_lock *flock, __u32 type,
fs/smb/client/file.c
2181
cifs_unlock_range(struct cifsFileInfo *cfile, struct file_lock *flock,
fs/smb/client/file.c
2293
cifs_setlk(struct file *file, struct file_lock *flock, __u32 type,
fs/smb/client/file.c
2387
int cifs_flock(struct file *file, int cmd, struct file_lock *fl)
fs/smb/client/file.c
2436
int cifs_lock(struct file *file, int cmd, struct file_lock *flock)
fs/smb/client/smb1proto.h
83
struct file_lock *pLockData, const __u16 lock_type,
fs/smb/client/smb2file.c
261
smb2_unlock_range(struct cifsFileInfo *cfile, struct file_lock *flock,
fs/smb/client/smb2proto.h
107
int smb2_unlock_range(struct cifsFileInfo *cfile, struct file_lock *flock,
fs/smb/server/smb2pdu.c
7348
struct file_lock *smb_flock_init(struct file *f)
fs/smb/server/smb2pdu.c
7350
struct file_lock *fl;
fs/smb/server/smb2pdu.c
7369
static int smb2_set_flock_flags(struct file_lock *flock, int flags)
fs/smb/server/smb2pdu.c
7409
static struct ksmbd_lock *smb2_lock_init(struct file_lock *flock,
fs/smb/server/smb2pdu.c
7436
struct file_lock *flock = (struct file_lock *)argv[0];
fs/smb/server/smb2pdu.c
7442
static inline bool lock_defer_pending(struct file_lock *fl)
fs/smb/server/smb2pdu.c
7460
struct file_lock *flock = NULL;
fs/smb/server/smb2pdu.c
7774
struct file_lock *rlock = NULL;
fs/smb/server/smb2pdu.h
349
struct file_lock *smb_flock_init(struct file *f);
fs/smb/server/vfs.c
1791
void ksmbd_vfs_posix_lock_wait(struct file_lock *flock)
fs/smb/server/vfs.c
1796
void ksmbd_vfs_posix_lock_unblock(struct file_lock *flock)
fs/smb/server/vfs.c
299
struct file_lock *flock;
fs/smb/server/vfs.h
145
void ksmbd_vfs_posix_lock_wait(struct file_lock *flock);
fs/smb/server/vfs.h
146
void ksmbd_vfs_posix_lock_unblock(struct file_lock *flock);
fs/smb/server/vfs_cache.h
33
struct file_lock *fl;
include/linux/dlm_plock.h
11
int cmd, struct file_lock *fl);
include/linux/dlm_plock.h
13
struct file_lock *fl);
include/linux/dlm_plock.h
15
struct file_lock *fl);
include/linux/dlm_plock.h
17
struct file_lock *fl);
include/linux/fdtable.h
51
spinlock_t file_lock ____cacheline_aligned_in_smp;
include/linux/fdtable.h
64
rcu_dereference_check((fdtfd), lockdep_is_held(&(files)->file_lock))
include/linux/fdtable.h
90
RCU_LOCKDEP_WARN(!lockdep_is_held(&files->file_lock),
include/linux/filelock.h
166
static inline bool lock_is_unlock(struct file_lock *fl)
include/linux/filelock.h
171
static inline bool lock_is_read(struct file_lock *fl)
include/linux/filelock.h
176
static inline bool lock_is_write(struct file_lock *fl)
include/linux/filelock.h
186
static inline void locks_wake_up(struct file_lock *fl)
include/linux/filelock.h
198
void locks_free_lock(struct file_lock *fl);
include/linux/filelock.h
199
void locks_init_lock(struct file_lock *);
include/linux/filelock.h
200
struct file_lock *locks_alloc_lock(void);
include/linux/filelock.h
201
void locks_copy_lock(struct file_lock *, struct file_lock *);
include/linux/filelock.h
202
void locks_copy_conflock(struct file_lock *, struct file_lock *);
include/linux/filelock.h
205
void locks_release_private(struct file_lock *);
include/linux/filelock.h
206
void posix_test_lock(struct file *, struct file_lock *);
include/linux/filelock.h
207
int posix_lock_file(struct file *, struct file_lock *, struct file_lock *);
include/linux/filelock.h
208
int locks_delete_block(struct file_lock *);
include/linux/filelock.h
209
int vfs_test_lock(struct file *, struct file_lock *);
include/linux/filelock.h
210
int vfs_lock_file(struct file *, unsigned int, struct file_lock *, struct file_lock *);
include/linux/filelock.h
211
int vfs_cancel_lock(struct file *filp, struct file_lock *fl);
include/linux/filelock.h
213
int locks_lock_inode_wait(struct inode *inode, struct file_lock *fl);
include/linux/filelock.h
29
struct file_lock;
include/linux/filelock.h
301
static inline bool lock_is_unlock(struct file_lock *fl)
include/linux/filelock.h
306
static inline bool lock_is_read(struct file_lock *fl)
include/linux/filelock.h
311
static inline bool lock_is_write(struct file_lock *fl)
include/linux/filelock.h
316
static inline void locks_wake_up(struct file_lock *fl)
include/linux/filelock.h
325
static inline void locks_init_lock(struct file_lock *fl)
include/linux/filelock.h
33
void (*fl_copy_lock)(struct file_lock *, struct file_lock *);
include/linux/filelock.h
335
static inline void locks_copy_conflock(struct file_lock *new, struct file_lock *fl)
include/linux/filelock.h
34
void (*fl_release_private)(struct file_lock *);
include/linux/filelock.h
340
static inline void locks_copy_lock(struct file_lock *new, struct file_lock *fl)
include/linux/filelock.h
355
static inline void posix_test_lock(struct file *filp, struct file_lock *fl)
include/linux/filelock.h
360
static inline int posix_lock_file(struct file *filp, struct file_lock *fl,
include/linux/filelock.h
361
struct file_lock *conflock)
include/linux/filelock.h
366
static inline int locks_delete_block(struct file_lock *waiter)
include/linux/filelock.h
371
static inline int vfs_test_lock(struct file *filp, struct file_lock *fl)
include/linux/filelock.h
377
struct file_lock *fl, struct file_lock *conf)
include/linux/filelock.h
382
static inline int vfs_cancel_lock(struct file *filp, struct file_lock *fl)
include/linux/filelock.h
392
static inline int locks_lock_inode_wait(struct inode *inode, struct file_lock *fl)
include/linux/filelock.h
41
void (*lm_notify)(struct file_lock *); /* unblock callback */
include/linux/filelock.h
42
int (*lm_grant)(struct file_lock *, int);
include/linux/filelock.h
43
bool (*lm_lock_expirable)(struct file_lock *cfl);
include/linux/filelock.h
452
static inline int locks_lock_file_wait(struct file *filp, struct file_lock *fl)
include/linux/fs.h
1333
struct file_lock;
include/linux/fs.h
1946
int (*lock) (struct file *, int, struct file_lock *);
include/linux/fs.h
1949
int (*flock) (struct file *, int, struct file_lock *);
include/linux/lockd/bind.h
81
extern int nlmclnt_proc(struct nlm_host *host, int cmd, struct file_lock *fl, void *data);
include/linux/lockd/lockd.h
132
struct file_lock *b_lock; /* local file lock */
include/linux/lockd/lockd.h
218
struct file_lock *fl);
include/linux/lockd/lockd.h
225
int nlmclnt_reclaim(struct nlm_host *, struct file_lock *,
include/linux/lockd/lockd.h
277
int lock_to_openmode(struct file_lock *);
include/linux/lockd/lockd.h
291
void nlmsvc_locks_init_private(struct file_lock *, struct nlm_host *, pid_t);
include/linux/lockd/lockd.h
382
static inline int nlm_compare_locks(const struct file_lock *fl1,
include/linux/lockd/lockd.h
383
const struct file_lock *fl2)
include/linux/lockd/xdr.h
47
struct file_lock fl;
include/linux/lockd/xdr4.h
25
void nlm4svc_set_file_lock_range(struct file_lock *fl, u64 off, u64 len);
include/linux/lsm_hook_defs.h
203
LSM_HOOK(int, 0, file_lock, struct file *file, unsigned int cmd)
include/linux/nfs_xdr.h
1839
int (*lock)(struct file *, int, struct file_lock *);
include/linux/nfs_xdr.h
1840
int (*lock_check_bounds)(const struct file_lock *);
include/linux/nfs_xdr.h
575
struct file_lock * fl;
include/linux/nfs_xdr.h
597
struct file_lock * fl;
include/linux/nfs_xdr.h
611
struct file_lock * fl;
include/linux/nfs_xdr.h
617
struct file_lock * denied; /* LOCK, LOCKT failed */
include/trace/events/afs.h
1337
TP_PROTO(struct afs_vnode *vnode, struct file_lock *fl,
include/trace/events/afs.h
1367
TP_PROTO(struct afs_vnode *vnode, struct file_lock *fl,
include/trace/events/filelock.h
105
TP_PROTO(struct inode *inode, struct file_lock *fl, int ret),
include/trace/events/filelock.h
109
TP_PROTO(struct inode *inode, struct file_lock *fl, int ret),
include/trace/events/filelock.h
113
TP_PROTO(struct inode *inode, struct file_lock *fl, int ret),
include/trace/events/filelock.h
117
TP_PROTO(struct inode *inode, struct file_lock *fl, int ret),
include/trace/events/filelock.h
64
TP_PROTO(struct inode *inode, struct file_lock *fl, int ret),
include/trace/events/filelock.h
69
__field(struct file_lock *, fl)
io_uring/openclose.c
248
spin_lock(&files->file_lock);
io_uring/openclose.c
251
spin_unlock(&files->file_lock);
io_uring/openclose.c
257
spin_unlock(&files->file_lock);
io_uring/openclose.c
262
spin_unlock(&files->file_lock);
security/apparmor/lsm.c
1694
LSM_HOOK_INIT(file_lock, apparmor_file_lock),
security/security.c
2550
return call_int_hook(file_lock, file, cmd);
security/selinux/hooks.c
7506
LSM_HOOK_INIT(file_lock, selinux_file_lock),
security/smack/smack_lsm.c
5173
LSM_HOOK_INIT(file_lock, smack_file_lock),