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
1176
extern int afs_lock(struct file *, int, struct file_lock *);
fs/afs/internal.h
1177
extern int afs_flock(struct file *, int, struct file_lock *);
fs/ceph/locks.c
229
static int try_unlock_file(struct file *file, struct file_lock *fl)
fs/ceph/locks.c
248
int ceph_lock(struct file *file, int cmd, struct file_lock *fl)
fs/ceph/locks.c
318
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
387
struct file_lock *lock;
fs/ceph/locks.c
410
struct file_lock *lock,
fs/ceph/locks.c
45
static void ceph_fl_release_lock(struct file_lock *fl)
fs/ceph/locks.c
450
struct file_lock *lock;
fs/ceph/locks.c
75
int cmd, u8 wait, struct file_lock *fl)
fs/ceph/super.h
1394
extern int ceph_lock(struct file *file, int cmd, struct file_lock *fl);
fs/ceph/super.h
1395
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
1278
spin_lock(&files->file_lock);
fs/file.c
1280
spin_unlock(&files->file_lock);
fs/file.c
1294
__releases(&files->file_lock)
fs/file.c
1333
spin_unlock(&files->file_lock);
fs/file.c
1341
spin_unlock(&files->file_lock);
fs/file.c
1356
spin_lock(&files->file_lock);
fs/file.c
1366
spin_unlock(&files->file_lock);
fs/file.c
1438
spin_lock(&files->file_lock);
fs/file.c
1453
spin_unlock(&files->file_lock);
fs/file.c
1518
spin_lock(&files->file_lock);
fs/file.c
1528
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
576
spin_lock(&files->file_lock);
fs/file.c
610
spin_unlock(&files->file_lock);
fs/file.c
636
spin_lock(&files->file_lock);
fs/file.c
638
spin_unlock(&files->file_lock);
fs/file.c
664
spin_lock(&files->file_lock);
fs/file.c
668
spin_unlock(&files->file_lock);
fs/file.c
719
lockdep_assert_held(&files->file_lock);
fs/file.c
738
spin_lock(&files->file_lock);
fs/file.c
740
spin_unlock(&files->file_lock);
fs/file.c
767
spin_lock(&cur_fds->file_lock);
fs/file.c
772
spin_unlock(&cur_fds->file_lock);
fs/file.c
782
spin_lock(&files->file_lock);
fs/file.c
792
spin_unlock(&files->file_lock);
fs/file.c
795
spin_lock(&files->file_lock);
fs/file.c
798
spin_unlock(&files->file_lock);
fs/file.c
800
spin_lock(&files->file_lock);
fs/file.c
804
spin_unlock(&files->file_lock);
fs/file.c
883
spin_lock(&files->file_lock);
fs/file.c
885
spin_unlock(&files->file_lock);
fs/file.c
896
spin_lock(&files->file_lock);
fs/file.c
916
spin_unlock(&files->file_lock);
fs/file.c
919
spin_lock(&files->file_lock);
fs/file.c
923
spin_unlock(&files->file_lock);
fs/fuse/file.c
2459
struct file_lock *fl)
fs/fuse/file.c
2491
const struct file_lock *fl, int opcode, pid_t pid,
fs/fuse/file.c
2514
static int fuse_getlk(struct file *file, struct file_lock *fl)
fs/fuse/file.c
2534
static int fuse_setlk(struct file *file, struct file_lock *fl, int flock)
fs/fuse/file.c
2560
static int fuse_file_lock(struct file *file, int cmd, struct file_lock *fl)
fs/fuse/file.c
2583
static int fuse_file_flock(struct file *file, int cmd, struct file_lock *fl)
fs/gfs2/file.c
1449
static int gfs2_lock(struct file *file, int cmd, struct file_lock *fl)
fs/gfs2/file.c
1494
static int do_flock(struct file *file, int cmd, struct file_lock *fl)
fs/gfs2/file.c
1513
struct file_lock request;
fs/gfs2/file.c
1554
static void do_unflock(struct file *file, struct file_lock *fl)
fs/gfs2/file.c
1577
static int gfs2_flock(struct file *file, int cmd, struct file_lock *fl)
fs/lockd/clnt4xdr.c
260
struct file_lock *fl = &lock->fl;
fs/lockd/clnt4xdr.c
69
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
256
struct file_lock *fl = &lock->fl;
fs/lockd/clntxdr.c
66
const struct file_lock *fl = &lock->fl;
fs/lockd/lockd.h
170
struct file_lock *b_lock; /* local file lock */
fs/lockd/lockd.h
259
struct file_lock *fl);
fs/lockd/lockd.h
266
int nlmclnt_reclaim(struct nlm_host *, struct file_lock *,
fs/lockd/lockd.h
322
int lock_to_openmode(struct file_lock *);
fs/lockd/lockd.h
336
void nlmsvc_locks_init_private(struct file_lock *, struct nlm_host *, pid_t);
fs/lockd/lockd.h
422
static inline int nlm_compare_locks(const struct file_lock *fl1,
fs/lockd/lockd.h
423
const struct file_lock *fl2)
fs/lockd/lockd.h
445
lockd_set_file_lock_range3(struct file_lock *fl, u32 off, u32 len)
fs/lockd/lockd.h
469
lockd_set_file_lock_range4(struct file_lock *fl, u64 off, u64 len)
fs/lockd/svc4proc.c
150
struct file_lock *fl = &lock->fl;
fs/lockd/svclock.c
148
struct file_lock *fl;
fs/lockd/svclock.c
408
void nlmsvc_locks_init_private(struct file_lock *fl, struct nlm_host *host,
fs/lockd/svclock.c
733
struct file_lock *fl = &block->b_call->a_args.lock.fl;
fs/lockd/svclock.c
762
static int nlmsvc_grant_deferred(struct file_lock *fl, int result)
fs/lockd/svclock.c
801
nlmsvc_notify_blocked(struct file_lock *fl)
fs/lockd/svclock.c
988
struct file_lock *fl;
fs/lockd/svcproc.c
155
struct file_lock *fl = &lock->fl;
fs/lockd/svcsubs.c
207
static int nlm_unlock_files(struct nlm_file *file, const struct file_lock *fl)
fs/lockd/svcsubs.c
209
struct file_lock lock;
fs/lockd/svcsubs.c
240
struct file_lock *fl;
fs/lockd/svcsubs.c
295
struct file_lock *fl;
fs/lockd/svcsubs.c
74
int lock_to_openmode(struct file_lock *lock)
fs/lockd/xdr.h
41
struct file_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
2224
static int flock_lock_inode_wait(struct inode *inode, struct file_lock *fl)
fs/locks.c
2248
int locks_lock_inode_wait(struct inode *inode, struct file_lock *fl)
fs/locks.c
2283
struct file_lock fl;
fs/locks.c
2345
int vfs_test_lock(struct file *filp, struct file_lock *fl)
fs/locks.c
2401
static int posix_lock_to_flock(struct flock *flock, struct file_lock *fl)
fs/locks.c
2423
static void posix_lock_to_flock64(struct flock64 *flock, struct file_lock *fl)
fs/locks.c
2439
struct file_lock *fl;
fs/locks.c
2513
int vfs_lock_file(struct file *filp, unsigned int cmd, struct file_lock *fl, struct file_lock *conf)
fs/locks.c
2524
struct file_lock *fl)
fs/locks.c
2548
check_fmode_for_setlk(struct file_lock *fl)
fs/locks.c
2568
struct file_lock *file_lock = locks_alloc_lock();
fs/locks.c
2573
if (file_lock == NULL)
fs/locks.c
2576
error = flock_to_posix_lock(filp, file_lock, flock);
fs/locks.c
2580
error = check_fmode_for_setlk(file_lock);
fs/locks.c
2595
file_lock->c.flc_flags |= FL_OFDLCK;
fs/locks.c
2596
file_lock->c.flc_owner = filp;
fs/locks.c
2604
file_lock->c.flc_flags |= FL_OFDLCK;
fs/locks.c
2605
file_lock->c.flc_owner = filp;
fs/locks.c
2608
file_lock->c.flc_flags |= FL_SLEEP;
fs/locks.c
2611
error = do_lock_file_wait(filp, cmd, file_lock);
fs/locks.c
2619
if (!error && file_lock->c.flc_type != F_UNLCK &&
fs/locks.c
2620
!(file_lock->c.flc_flags & FL_OFDLCK)) {
fs/locks.c
2627
spin_lock(&files->file_lock);
fs/locks.c
2629
spin_unlock(&files->file_lock);
fs/locks.c
2636
trace_fcntl_setlk(inode, file_lock, error);
fs/locks.c
2637
locks_free_lock(file_lock);
fs/locks.c
2647
struct file_lock *fl;
fs/locks.c
2691
struct file_lock *file_lock = locks_alloc_lock();
fs/locks.c
2695
if (file_lock == NULL)
fs/locks.c
2698
error = flock64_to_posix_lock(filp, file_lock, flock);
fs/locks.c
2702
error = check_fmode_for_setlk(file_lock);
fs/locks.c
2717
file_lock->c.flc_flags |= FL_OFDLCK;
fs/locks.c
2718
file_lock->c.flc_owner = filp;
fs/locks.c
2726
file_lock->c.flc_flags |= FL_OFDLCK;
fs/locks.c
2727
file_lock->c.flc_owner = filp;
fs/locks.c
2730
file_lock->c.flc_flags |= FL_SLEEP;
fs/locks.c
2733
error = do_lock_file_wait(filp, cmd, file_lock);
fs/locks.c
2741
if (!error && file_lock->c.flc_type != F_UNLCK &&
fs/locks.c
2742
!(file_lock->c.flc_flags & FL_OFDLCK)) {
fs/locks.c
2749
spin_lock(&files->file_lock);
fs/locks.c
2751
spin_unlock(&files->file_lock);
fs/locks.c
2758
locks_free_lock(file_lock);
fs/locks.c
2772
struct file_lock lock;
fs/locks.c
2807
struct file_lock fl;
fs/locks.c
283
struct file_lock *locks_alloc_lock(void)
fs/locks.c
285
struct file_lock *fl = kmem_cache_zalloc(filelock_cache, GFP_KERNEL);
fs/locks.c
2880
int vfs_cancel_lock(struct file *filp, struct file_lock *fl)
fs/locks.c
2928
struct file_lock *fl = file_lock(flc);
fs/locks.c
306
void locks_release_private(struct file_lock *fl)
fs/locks.c
3148
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
177
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
798
do_getlk(struct file *filp, int cmd, struct file_lock *fl, int is_local)
fs/nfs/file.c
827
do_unlk(struct file *filp, int cmd, struct file_lock *fl, int is_local)
fs/nfs/file.c
863
do_setlk(struct file *filp, int cmd, struct file_lock *fl, int is_local)
fs/nfs/file.c
907
int nfs_lock(struct file *filp, int cmd, struct file_lock *fl)
fs/nfs/file.c
945
int nfs_flock(struct file *filp, int cmd, struct file_lock *fl)
fs/nfs/internal.h
434
int nfs_lock(struct file *, int, struct file_lock *);
fs/nfs/internal.h
435
int nfs_flock(struct file *, int, struct file_lock *);
fs/nfs/nfs3proc.c
1008
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
6923
static int _nfs4_proc_getlk(struct nfs4_state *state, int cmd, struct file_lock *request)
fs/nfs/nfs4proc.c
6965
static int nfs4_proc_getlk(struct nfs4_state *state, int cmd, struct file_lock *request)
fs/nfs/nfs4proc.c
7023
struct file_lock fl;
fs/nfs/nfs4proc.c
7029
static struct nfs4_unlockdata *nfs4_alloc_unlockdata(struct file_lock *fl,
fs/nfs/nfs4proc.c
7154
static struct rpc_task *nfs4_do_unlck(struct file_lock *fl,
fs/nfs/nfs4proc.c
7199
static int nfs4_proc_unlck(struct nfs4_state *state, int cmd, struct file_lock *request)
fs/nfs/nfs4proc.c
7256
struct file_lock fl;
fs/nfs/nfs4proc.c
7263
static struct nfs4_lockdata *nfs4_alloc_lockdata(struct file_lock *fl,
fs/nfs/nfs4proc.c
7433
static int _nfs4_do_setlk(struct nfs4_state *state, int cmd, struct file_lock *fl, int recovery_type)
fs/nfs/nfs4proc.c
7487
int nfs4_lock_reclaim(struct nfs4_state *state, struct file_lock *request)
fs/nfs/nfs4proc.c
7507
int nfs4_lock_expired(struct nfs4_state *state, struct file_lock *request)
fs/nfs/nfs4proc.c
7539
static int nfs41_lock_expired(struct nfs4_state *state, struct file_lock *request)
fs/nfs/nfs4proc.c
7554
static int _nfs4_proc_setlk(struct nfs4_state *state, int cmd, struct file_lock *request)
fs/nfs/nfs4proc.c
7591
static int nfs4_proc_setlk(struct nfs4_state *state, int cmd, struct file_lock *request)
fs/nfs/nfs4proc.c
7615
struct file_lock *request)
fs/nfs/nfs4proc.c
7664
nfs4_retry_setlk(struct nfs4_state *state, int cmd, struct file_lock *request)
fs/nfs/nfs4proc.c
7702
nfs4_proc_lock(struct file *filp, int cmd, struct file_lock *request)
fs/nfs/nfs4proc.c
7792
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
666
nfs_proc_lock(struct file *filp, int cmd, struct file_lock *fl)
fs/nfs/proc.c
675
static int nfs_lock_check_bounds(const struct file_lock *fl)
fs/nfs/write.c
1239
is_whole_file_wrlock(struct file_lock *fl)
fs/nfs/write.c
1258
struct file_lock *fl;
fs/nfs/write.c
1278
fl = list_first_entry(&flctx->flc_posix, struct file_lock,
fs/nfs/write.c
1283
fl = list_first_entry(&flctx->flc_flock, struct file_lock,
fs/nfsd/nfs4state.c
8069
nfs4_transform_lock_offset(struct file_lock *lock)
fs/nfsd/nfs4state.c
8097
nfsd4_lm_lock_expirable(struct file_lock *cfl)
fs/nfsd/nfs4state.c
8119
nfsd4_lm_notify(struct file_lock *fl)
fs/nfsd/nfs4state.c
8153
nfs4_set_lock_denied(struct file_lock *fl, struct nfsd4_lock_denied *deny)
fs/nfsd/nfs4state.c
8439
struct file_lock *file_lock = NULL;
fs/nfsd/nfs4state.c
8440
struct file_lock *conflock = NULL;
fs/nfsd/nfs4state.c
8557
file_lock = &nbl->nbl_lock;
fs/nfsd/nfs4state.c
8558
file_lock->c.flc_type = type;
fs/nfsd/nfs4state.c
8559
file_lock->c.flc_owner = (fl_owner_t)lockowner(nfs4_get_stateowner(&lock_sop->lo_owner));
fs/nfsd/nfs4state.c
8560
file_lock->c.flc_pid = current->tgid;
fs/nfsd/nfs4state.c
8561
file_lock->c.flc_file = nf->nf_file;
fs/nfsd/nfs4state.c
8562
file_lock->c.flc_flags = flags;
fs/nfsd/nfs4state.c
8563
file_lock->fl_lmops = &nfsd_posix_mng_ops;
fs/nfsd/nfs4state.c
8564
file_lock->fl_start = lock->lk_offset;
fs/nfsd/nfs4state.c
8565
file_lock->fl_end = last_byte_offset(lock->lk_offset, lock->lk_length);
fs/nfsd/nfs4state.c
8566
nfs4_transform_lock_offset(file_lock);
fs/nfsd/nfs4state.c
8584
err = vfs_lock_file(nf->nf_file, F_SETLK, file_lock, conflock);
fs/nfsd/nfs4state.c
8666
static __be32 nfsd_test_lock(struct svc_rqst *rqstp, struct svc_fh *fhp, struct file_lock *lock)
fs/nfsd/nfs4state.c
8697
struct file_lock *file_lock = NULL;
fs/nfsd/nfs4state.c
8717
file_lock = locks_alloc_lock();
fs/nfsd/nfs4state.c
8718
if (!file_lock) {
fs/nfsd/nfs4state.c
8727
file_lock->c.flc_type = F_RDLCK;
fs/nfsd/nfs4state.c
8731
file_lock->c.flc_type = F_WRLCK;
fs/nfsd/nfs4state.c
8741
file_lock->c.flc_owner = (fl_owner_t)lo;
fs/nfsd/nfs4state.c
8742
file_lock->c.flc_pid = current->tgid;
fs/nfsd/nfs4state.c
8743
file_lock->c.flc_flags = FL_POSIX;
fs/nfsd/nfs4state.c
8745
file_lock->fl_start = lockt->lt_offset;
fs/nfsd/nfs4state.c
8746
file_lock->fl_end = last_byte_offset(lockt->lt_offset, lockt->lt_length);
fs/nfsd/nfs4state.c
8748
nfs4_transform_lock_offset(file_lock);
fs/nfsd/nfs4state.c
8750
status = nfsd_test_lock(rqstp, &cstate->current_fh, file_lock);
fs/nfsd/nfs4state.c
8754
if (file_lock->c.flc_type != F_UNLCK) {
fs/nfsd/nfs4state.c
8756
nfs4_set_lock_denied(file_lock, &lockt->lt_denied);
fs/nfsd/nfs4state.c
8761
if (file_lock)
fs/nfsd/nfs4state.c
8762
locks_free_lock(file_lock);
fs/nfsd/nfs4state.c
8781
struct file_lock *file_lock = NULL;
fs/nfsd/nfs4state.c
8808
file_lock = locks_alloc_lock();
fs/nfsd/nfs4state.c
8809
if (!file_lock) {
fs/nfsd/nfs4state.c
8815
file_lock->c.flc_type = F_UNLCK;
fs/nfsd/nfs4state.c
8816
file_lock->c.flc_owner = (fl_owner_t)lockowner(nfs4_get_stateowner(stp->st_stateowner));
fs/nfsd/nfs4state.c
8817
file_lock->c.flc_pid = current->tgid;
fs/nfsd/nfs4state.c
8818
file_lock->c.flc_file = nf->nf_file;
fs/nfsd/nfs4state.c
8819
file_lock->c.flc_flags = FL_POSIX;
fs/nfsd/nfs4state.c
8820
file_lock->fl_lmops = &nfsd_posix_mng_ops;
fs/nfsd/nfs4state.c
8821
file_lock->fl_start = locku->lu_offset;
fs/nfsd/nfs4state.c
8823
file_lock->fl_end = last_byte_offset(locku->lu_offset,
fs/nfsd/nfs4state.c
8825
nfs4_transform_lock_offset(file_lock);
fs/nfsd/nfs4state.c
8827
err = vfs_lock_file(nf->nf_file, F_SETLK, file_lock, NULL);
fs/nfsd/nfs4state.c
8840
if (file_lock)
fs/nfsd/nfs4state.c
8841
locks_free_lock(file_lock);
fs/nfsd/nfs4state.c
8857
struct file_lock *fl;
fs/nfsd/state.h
794
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
722
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
112
int cifs_flock(struct file *file, int cmd, struct file_lock *fl);
fs/smb/client/cifsfs.h
113
int cifs_lock(struct file *file, int cmd, struct file_lock *flock);
fs/smb/client/cifsglob.h
2216
static inline u64 cifs_flock_len(const struct file_lock *fl)
fs/smb/client/cifsglob.h
528
int (*mand_unlock_range)(struct cifsFileInfo *, struct file_lock *,
fs/smb/client/cifsproto.h
165
int cifs_unlock_range(struct cifsFileInfo *cfile, struct file_lock *flock,
fs/smb/client/cifssmb.c
2271
struct file_lock *pLockData, const __u16 lock_type,
fs/smb/client/file.c
1700
__u8 type, struct file_lock *flock)
fs/smb/client/file.c
1802
cifs_posix_lock_test(struct file *file, struct file_lock *flock)
fs/smb/client/file.c
1831
cifs_posix_lock_set(struct file *file, struct file_lock *flock)
fs/smb/client/file.c
1949
struct file_lock *flock;
fs/smb/client/file.c
2067
cifs_read_flock(struct file_lock *flock, __u32 *type, int *lock, int *unlock,
fs/smb/client/file.c
2115
cifs_getlk(struct file *file, struct file_lock *flock, __u32 type,
fs/smb/client/file.c
2229
cifs_unlock_range(struct cifsFileInfo *cfile, struct file_lock *flock,
fs/smb/client/file.c
2341
cifs_setlk(struct file *file, struct file_lock *flock, __u32 type,
fs/smb/client/file.c
2435
int cifs_flock(struct file *file, int cmd, struct file_lock *fl)
fs/smb/client/file.c
2484
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
286
smb2_unlock_range(struct cifsFileInfo *cfile, struct file_lock *flock,
fs/smb/client/smb2proto.h
112
int smb2_unlock_range(struct cifsFileInfo *cfile, struct file_lock *flock,
fs/smb/server/smb2pdu.c
7941
struct file_lock *smb_flock_init(struct file *f)
fs/smb/server/smb2pdu.c
7943
struct file_lock *fl;
fs/smb/server/smb2pdu.c
7962
static int smb2_set_flock_flags(struct file_lock *flock, int flags)
fs/smb/server/smb2pdu.c
8002
static struct ksmbd_lock *smb2_lock_init(struct file_lock *flock,
fs/smb/server/smb2pdu.c
8029
struct file_lock *flock = (struct file_lock *)argv[0];
fs/smb/server/smb2pdu.c
8035
static inline bool lock_defer_pending(struct file_lock *fl)
fs/smb/server/smb2pdu.c
8053
struct file_lock *flock = NULL;
fs/smb/server/smb2pdu.c
8391
struct file_lock *rlock = NULL;
fs/smb/server/smb2pdu.h
333
struct file_lock *smb_flock_init(struct file *f);
fs/smb/server/vfs.c
1822
void ksmbd_vfs_posix_lock_wait(struct file_lock *flock)
fs/smb/server/vfs.c
1827
void ksmbd_vfs_posix_lock_unblock(struct file_lock *flock)
fs/smb/server/vfs.c
296
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
39
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
179
static inline bool lock_is_unlock(struct file_lock *fl)
include/linux/filelock.h
184
static inline bool lock_is_read(struct file_lock *fl)
include/linux/filelock.h
189
static inline bool lock_is_write(struct file_lock *fl)
include/linux/filelock.h
199
static inline void locks_wake_up(struct file_lock *fl)
include/linux/filelock.h
211
void locks_free_lock(struct file_lock *fl);
include/linux/filelock.h
212
void locks_init_lock(struct file_lock *);
include/linux/filelock.h
213
struct file_lock *locks_alloc_lock(void);
include/linux/filelock.h
214
void locks_copy_lock(struct file_lock *, struct file_lock *);
include/linux/filelock.h
215
void locks_copy_conflock(struct file_lock *, struct file_lock *);
include/linux/filelock.h
218
void locks_release_private(struct file_lock *);
include/linux/filelock.h
219
void posix_test_lock(struct file *, struct file_lock *);
include/linux/filelock.h
220
int posix_lock_file(struct file *, struct file_lock *, struct file_lock *);
include/linux/filelock.h
221
int locks_delete_block(struct file_lock *);
include/linux/filelock.h
222
int vfs_test_lock(struct file *, struct file_lock *);
include/linux/filelock.h
223
int vfs_lock_file(struct file *, unsigned int, struct file_lock *, struct file_lock *);
include/linux/filelock.h
224
int vfs_cancel_lock(struct file *filp, struct file_lock *fl);
include/linux/filelock.h
226
int locks_lock_inode_wait(struct inode *inode, struct file_lock *fl);
include/linux/filelock.h
308
static inline bool lock_is_unlock(struct file_lock *fl)
include/linux/filelock.h
313
static inline bool lock_is_read(struct file_lock *fl)
include/linux/filelock.h
318
static inline bool lock_is_write(struct file_lock *fl)
include/linux/filelock.h
323
static inline void locks_wake_up(struct file_lock *fl)
include/linux/filelock.h
332
static inline void locks_init_lock(struct file_lock *fl)
include/linux/filelock.h
342
static inline void locks_copy_conflock(struct file_lock *new, struct file_lock *fl)
include/linux/filelock.h
347
static inline void locks_copy_lock(struct file_lock *new, struct file_lock *fl)
include/linux/filelock.h
362
static inline void posix_test_lock(struct file *filp, struct file_lock *fl)
include/linux/filelock.h
367
static inline int posix_lock_file(struct file *filp, struct file_lock *fl,
include/linux/filelock.h
368
struct file_lock *conflock)
include/linux/filelock.h
373
static inline int locks_delete_block(struct file_lock *waiter)
include/linux/filelock.h
378
static inline int vfs_test_lock(struct file *filp, struct file_lock *fl)
include/linux/filelock.h
384
struct file_lock *fl, struct file_lock *conf)
include/linux/filelock.h
389
static inline int vfs_cancel_lock(struct file *filp, struct file_lock *fl)
include/linux/filelock.h
399
static inline int locks_lock_inode_wait(struct inode *inode, struct file_lock *fl)
include/linux/filelock.h
41
struct file_lock;
include/linux/filelock.h
45
void (*fl_copy_lock)(struct file_lock *, struct file_lock *);
include/linux/filelock.h
459
static inline int locks_lock_file_wait(struct file *filp, struct file_lock *fl)
include/linux/filelock.h
46
void (*fl_release_private)(struct file_lock *);
include/linux/filelock.h
53
void (*lm_notify)(struct file_lock *); /* unblock callback */
include/linux/filelock.h
54
int (*lm_grant)(struct file_lock *, int);
include/linux/filelock.h
55
bool (*lm_lock_expirable)(struct file_lock *cfl);
include/linux/fs.h
1329
struct file_lock;
include/linux/fs.h
1941
int (*lock) (struct file *, int, struct file_lock *);
include/linux/fs.h
1944
int (*flock) (struct file *, int, struct file_lock *);
include/linux/lockd/bind.h
13
struct file_lock;
include/linux/lockd/bind.h
75
extern int nlmclnt_proc(struct nlm_host *host, int cmd, struct file_lock *fl, void *data);
include/linux/lsm_hook_defs.h
208
LSM_HOOK(int, 0, file_lock, struct file *file, unsigned int cmd)
include/linux/nfs_xdr.h
1842
int (*lock)(struct file *, int, struct file_lock *);
include/linux/nfs_xdr.h
1843
int (*lock_check_bounds)(const struct file_lock *);
include/linux/nfs_xdr.h
577
struct file_lock * fl;
include/linux/nfs_xdr.h
598
struct file_lock * fl;
include/linux/nfs_xdr.h
612
struct file_lock * fl;
include/linux/nfs_xdr.h
618
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
108
TP_PROTO(struct inode *inode, struct file_lock *fl, int ret),
include/trace/events/filelock.h
112
TP_PROTO(struct inode *inode, struct file_lock *fl, int ret),
include/trace/events/filelock.h
116
TP_PROTO(struct inode *inode, struct file_lock *fl, int ret),
include/trace/events/filelock.h
120
TP_PROTO(struct inode *inode, struct file_lock *fl, int ret),
include/trace/events/filelock.h
67
TP_PROTO(struct inode *inode, struct file_lock *fl, int ret),
include/trace/events/filelock.h
75
__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
1700
LSM_HOOK_INIT(file_lock, apparmor_file_lock),
security/security.c
2652
return call_int_hook(file_lock, file, cmd);
security/selinux/hooks.c
7637
LSM_HOOK_INIT(file_lock, selinux_file_lock),
security/smack/smack_lsm.c
5166
LSM_HOOK_INIT(file_lock, smack_file_lock),