Home
last modified time | relevance | path

Searched refs:file_lock (Results 1 – 71 of 71) sorted by relevance

/linux-4.1.27/fs/
Dlocks.c143 static bool lease_breaking(struct file_lock *fl) in lease_breaking()
148 static int target_leasetype(struct file_lock *fl) in target_leasetype()
243 static void locks_init_lock_heads(struct file_lock *fl) in locks_init_lock_heads()
252 struct file_lock *locks_alloc_lock(void) in locks_alloc_lock()
254 struct file_lock *fl = kmem_cache_zalloc(filelock_cache, GFP_KERNEL); in locks_alloc_lock()
263 void locks_release_private(struct file_lock *fl) in locks_release_private()
282 void locks_free_lock(struct file_lock *fl) in locks_free_lock()
297 struct file_lock *fl; in locks_dispose_list()
300 fl = list_first_entry(dispose, struct file_lock, fl_list); in locks_dispose_list()
306 void locks_init_lock(struct file_lock *fl) in locks_init_lock()
[all …]
Dfile.c143 __releases(files->file_lock) in expand_fdtable()
144 __acquires(files->file_lock) in expand_fdtable()
148 spin_unlock(&files->file_lock); in expand_fdtable()
150 spin_lock(&files->file_lock); in expand_fdtable()
258 spin_lock_init(&newf->file_lock); in dup_fd()
266 spin_lock(&oldf->file_lock); in dup_fd()
274 spin_unlock(&oldf->file_lock); in dup_fd()
297 spin_lock(&oldf->file_lock); in dup_fd()
323 spin_unlock(&oldf->file_lock); in dup_fd()
439 .file_lock = __SPIN_LOCK_UNLOCKED(init_files.file_lock),
[all …]
Dlibfs.c1090 simple_nosetlease(struct file *filp, long arg, struct file_lock **flp, in simple_nosetlease()
/linux-4.1.27/include/trace/events/
Dfilelock.h39 TP_PROTO(struct inode *inode, struct file_lock *fl),
44 __field(struct file_lock *, fl)
47 __field(struct file_lock *, fl_next)
75 DEFINE_EVENT(filelock_lease, break_lease_noblock, TP_PROTO(struct inode *inode, struct file_lock *f…
78 DEFINE_EVENT(filelock_lease, break_lease_block, TP_PROTO(struct inode *inode, struct file_lock *fl),
81 DEFINE_EVENT(filelock_lease, break_lease_unblock, TP_PROTO(struct inode *inode, struct file_lock *f…
84 DEFINE_EVENT(filelock_lease, generic_add_lease, TP_PROTO(struct inode *inode, struct file_lock *fl),
87 DEFINE_EVENT(filelock_lease, generic_delete_lease, TP_PROTO(struct inode *inode, struct file_lock *…
90 DEFINE_EVENT(filelock_lease, time_out_leases, TP_PROTO(struct inode *inode, struct file_lock *fl),
/linux-4.1.27/fs/afs/
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);
83 static void afs_grant_locks(struct afs_vnode *vnode, struct file_lock *fl) in afs_grant_locks()
85 struct file_lock *p, *_p; in afs_grant_locks()
110 struct file_lock *fl; in afs_lock_work()
145 struct file_lock, fl_u.afs.link); in afs_lock_work()
179 struct file_lock, fl_u.afs.link); in afs_lock_work()
203 struct file_lock, fl_u.afs.link) == fl) { in afs_lock_work()
253 static int afs_do_setlk(struct file *file, struct file_lock *fl) in afs_do_setlk()
441 static int afs_do_unlk(struct file *file, struct file_lock *fl) in afs_do_unlk()
[all …]
Dinternal.h509 extern int afs_lock(struct file *, int, struct file_lock *);
510 extern int afs_flock(struct file *, int, struct file_lock *);
/linux-4.1.27/fs/ocfs2/
Dlocks.c39 int cmd, struct file_lock *fl) in ocfs2_do_flock()
70 &(struct file_lock){.fl_type = F_UNLCK}); in ocfs2_do_flock()
94 static int ocfs2_do_funlock(struct file *file, int cmd, struct file_lock *fl) in ocfs2_do_funlock()
110 int ocfs2_flock(struct file *file, int cmd, struct file_lock *fl) in ocfs2_flock()
130 int ocfs2_lock(struct file *file, int cmd, struct file_lock *fl) in ocfs2_lock()
Dlocks.h29 int ocfs2_flock(struct file *file, int cmd, struct file_lock *fl);
30 int ocfs2_lock(struct file *file, int cmd, struct file_lock *fl);
Dstackglue.h33 struct file_lock;
220 struct file_lock *fl);
292 struct file *file, int cmd, struct file_lock *fl);
Docfs1_fs_compat.h79 __u8 file_lock; member
Dstackglue.c302 struct file *file, int cmd, struct file_lock *fl) in ocfs2_plock()
Dstack_user.c755 struct file_lock *fl) in user_plock()
/linux-4.1.27/include/linux/
Dfs.h915 struct file_lock;
918 void (*fl_copy_lock)(struct file_lock *, struct file_lock *);
919 void (*fl_release_private)(struct file_lock *);
923 int (*lm_compare_owner)(struct file_lock *, struct file_lock *);
924 unsigned long (*lm_owner_key)(struct file_lock *);
927 void (*lm_notify)(struct file_lock *); /* unblock callback */
928 int (*lm_grant)(struct file_lock *, int);
929 bool (*lm_break)(struct file_lock *);
930 int (*lm_change)(struct file_lock *, int, struct list_head *);
931 void (*lm_setup)(struct file_lock *, void **);
[all …]
Ddlm_plock.h14 int cmd, struct file_lock *fl);
16 struct file_lock *fl);
18 struct file_lock *fl);
Dfdtable.h55 spinlock_t file_lock ____cacheline_aligned_in_smp;
67 rcu_dereference_check((fdtfd), lockdep_is_held(&(files)->file_lock))
87 lockdep_is_held(&files->file_lock), in fcheck_files()
Dnfs_xdr.h424 struct file_lock * fl;
446 struct file_lock * fl;
460 struct file_lock * fl;
466 struct file_lock * denied; /* LOCK, LOCKT failed */
1500 int (*lock)(struct file *, int, struct file_lock *);
1501 int (*lock_check_bounds)(const struct file_lock *);
Dsecurity.h1586 int (*file_lock) (struct file *file, unsigned int cmd); member
/linux-4.1.27/fs/lockd/
Dclntproc.c26 static int nlmclnt_test(struct nlm_rqst *, struct file_lock *);
27 static int nlmclnt_lock(struct nlm_rqst *, struct file_lock *);
28 static int nlmclnt_unlock(struct nlm_rqst *, struct file_lock *);
30 static void nlmclnt_locks_init_private(struct file_lock *fl, struct nlm_host *host);
31 static int nlmclnt_cancel(struct nlm_host *, int , struct file_lock *);
124 static void nlmclnt_setlockargs(struct nlm_rqst *req, struct file_lock *fl) in nlmclnt_setlockargs()
155 int nlmclnt_proc(struct nlm_host *host, int cmd, struct file_lock *fl) in nlmclnt_proc()
416 nlmclnt_test(struct nlm_rqst *req, struct file_lock *fl) in nlmclnt_test()
445 static void nlmclnt_locks_copy_lock(struct file_lock *new, struct file_lock *fl) in nlmclnt_locks_copy_lock()
454 static void nlmclnt_locks_release_private(struct file_lock *fl) in nlmclnt_locks_release_private()
[all …]
Dclntlock.c38 struct file_lock * b_lock; /* local file lock */
98 struct nlm_wait *nlmclnt_prepare_block(struct nlm_host *host, struct file_lock *fl) in nlmclnt_prepare_block()
164 const struct file_lock *fl = &lock->fl; in nlmclnt_grant()
175 struct file_lock *fl_blocked = block->b_lock; in nlmclnt_grant()
232 struct file_lock *fl, *next; in reclaimer()
Dsvcsubs.c166 struct file_lock *fl; in nlm_traverse_locks()
184 struct file_lock lock = *fl; in nlm_traverse_locks()
228 struct file_lock *fl; in nlm_file_inuse()
Dsvclock.c147 struct file_lock *fl; in nlmsvc_lookup_block()
637 static int nlmsvc_grant_deferred(struct file_lock *fl, int result) in nlmsvc_grant_deferred()
676 nlmsvc_notify_blocked(struct file_lock *fl) in nlmsvc_notify_blocked()
694 static int nlmsvc_same_owner(struct file_lock *fl1, struct file_lock *fl2) in nlmsvc_same_owner()
705 nlmsvc_owner_key(struct file_lock *fl) in nlmsvc_owner_key()
Dxdr4.c108 struct file_lock *fl = &lock->fl; in nlm4_decode_lock()
151 struct file_lock *fl = &resp->lock.fl; in nlm4_encode_testres()
Dxdr.c116 struct file_lock *fl = &lock->fl; in nlm_decode_lock()
158 struct file_lock *fl = &resp->lock.fl; in nlm_encode_testres()
Dclntxdr.c63 const struct file_lock *fl = &lock->fl; in nlm_compute_offsets()
276 struct file_lock *fl = &lock->fl; in decode_nlm_holder()
Dclnt4xdr.c67 const struct file_lock *fl = &lock->fl; in nlm4_compute_offsets()
281 struct file_lock *fl = &lock->fl; in decode_nlm4_holder()
/linux-4.1.27/Documentation/filesystems/
Dfiles.txt8 with a lock (files->file_lock) and reference count (files->count).
9 ->file_lock protected accesses to all the file related fields
58 3. For any update to the fd table, files->file_lock must
106 holding files->file_lock. If ->file_lock is dropped, then
111 spin_lock(&files->file_lock);
118 spin_unlock(&files->file_lock);
121 Since locate_fd() can drop ->file_lock (and reacquire ->file_lock),
DLocking342 void (*fl_copy_lock)(struct file_lock *, struct file_lock *);
343 void (*fl_release_private)(struct file_lock *);
357 int (*lm_compare_owner)(struct file_lock *, struct file_lock *);
358 unsigned long (*lm_owner_key)(struct file_lock *);
359 void (*lm_notify)(struct file_lock *); /* unblock callback */
360 int (*lm_grant)(struct file_lock *, struct file_lock *, int);
361 void (*lm_break)(struct file_lock *); /* break_lease callback */
362 int (*lm_change)(struct file_lock **, int);
376 associated with either file_lock argument! This is the case with deadlock
445 int (*lock) (struct file *, int, struct file_lock *);
[all …]
Dvfs.txt820 int (*lock) (struct file *, int, struct file_lock *);
824 int (*flock) (struct file *, int, struct file_lock *);
827 int (*setlease)(struct file *, long arg, struct file_lock **, void **);
/linux-4.1.27/fs/dlm/
Dplock.c33 int (*callback)(struct file_lock *fl, int result);
36 struct file_lock flc;
81 struct file *file, struct file_lock *fl) in do_unlock_close()
105 int cmd, struct file_lock *fl) in dlm_posix_lock()
191 struct file_lock *fl; in dlm_plock_callback()
192 struct file_lock *flc; in dlm_plock_callback()
193 int (*notify)(struct file_lock *fl, int result) = NULL; in dlm_plock_callback()
245 struct file_lock *fl) in dlm_posix_unlock()
319 struct file_lock *fl) in dlm_posix_get()
/linux-4.1.27/fs/ceph/
Dlocks.c36 int cmd, u8 wait, struct file_lock *fl) in ceph_lock_message()
157 int ceph_lock(struct file *file, int cmd, struct file_lock *fl) in ceph_lock()
204 int ceph_flock(struct file *file, int cmd, struct file_lock *fl) in ceph_flock()
248 struct file_lock *lock; in ceph_count_locks()
276 struct file_lock *lock; in ceph_encode_locks_to_buffer()
355 int lock_to_ceph_filelock(struct file_lock *lock, in lock_to_ceph_filelock()
Dsuper.h930 extern int ceph_lock(struct file *file, int cmd, struct file_lock *fl);
931 extern int ceph_flock(struct file *file, int cmd, struct file_lock *fl);
940 extern int lock_to_ceph_filelock(struct file_lock *fl, struct ceph_filelock *c);
/linux-4.1.27/include/linux/lockd/
Dlockd.h208 struct nlm_wait * nlmclnt_prepare_block(struct nlm_host *host, struct file_lock *fl);
214 int nlmclnt_reclaim(struct nlm_host *, struct file_lock *,
351 static inline int nlm_compare_locks(const struct file_lock *fl1, in nlm_compare_locks()
352 const struct file_lock *fl2) in nlm_compare_locks()
Dbind.h56 struct file_lock *fl);
Dxdr.h43 struct file_lock fl;
/linux-4.1.27/fs/proc/
Dfd.c36 spin_lock(&files->file_lock); in seq_show()
48 spin_unlock(&files->file_lock); in seq_show()
164 spin_lock(&files->file_lock); in proc_fd_link()
171 spin_unlock(&files->file_lock); in proc_fd_link()
/linux-4.1.27/fs/nfsd/
Dnfs4state.c3604 nfsd_break_deleg_cb(struct file_lock *fl) in nfsd_break_deleg_cb()
3641 nfsd_change_deleg_cb(struct file_lock *onlist, int arg, in nfsd_change_deleg_cb()
3980 static struct file_lock *nfs4_alloc_init_lease(struct nfs4_file *fp, int flag) in nfs4_alloc_init_lease()
3982 struct file_lock *fl; in nfs4_alloc_init_lease()
4011 struct file_lock *fl, *ret; in nfs4_setlease()
5155 nfs4_transform_lock_offset(struct file_lock *lock) in nfs4_transform_lock_offset()
5187 nfs4_set_lock_denied(struct file_lock *fl, struct nfsd4_lock_denied *deny) in nfs4_set_lock_denied()
5445 struct file_lock *file_lock = NULL; in nfsd4_lock() local
5446 struct file_lock *conflock = NULL; in nfsd4_lock()
5517 file_lock = locks_alloc_lock(); in nfsd4_lock()
[all …]
Dnfs4layouts.c159 struct file_lock *fl; in nfsd4_layout_setlease()
662 nfsd4_layout_lm_break(struct file_lock *fl) in nfsd4_layout_lm_break()
675 nfsd4_layout_lm_change(struct file_lock *onlist, int arg, in nfsd4_layout_lm_change()
/linux-4.1.27/drivers/misc/genwqe/
Dcard_dev.c45 spin_lock_irqsave(&cd->file_lock, flags); in genwqe_open_files()
47 spin_unlock_irqrestore(&cd->file_lock, flags); in genwqe_open_files()
56 spin_lock_irqsave(&cd->file_lock, flags); in genwqe_add_file()
58 spin_unlock_irqrestore(&cd->file_lock, flags); in genwqe_add_file()
65 spin_lock_irqsave(&cd->file_lock, flags); in genwqe_del_file()
67 spin_unlock_irqrestore(&cd->file_lock, flags); in genwqe_del_file()
268 spin_lock_irqsave(&cd->file_lock, flags); in genwqe_kill_fasync()
274 spin_unlock_irqrestore(&cd->file_lock, flags); in genwqe_kill_fasync()
284 spin_lock_irqsave(&cd->file_lock, flags); in genwqe_force_sig()
289 spin_unlock_irqrestore(&cd->file_lock, flags); in genwqe_force_sig()
Dcard_base.h322 spinlock_t file_lock; /* lock for open files */ member
Dcard_base.c150 spin_lock_init(&cd->file_lock); in genwqe_dev_alloc()
/linux-4.1.27/Documentation/RCU/
Dlockdep.txt79 lockdep_is_held(&files->file_lock) ||
87 2. with files->file_lock held, or
91 RCU read-side critical sections, in case (2) the ->file_lock prevents
98 lockdep_is_held(&files->file_lock) ||
/linux-4.1.27/fs/nfs/
Dfile.c731 do_getlk(struct file *filp, int cmd, struct file_lock *fl, int is_local) in do_getlk()
759 static int do_vfs_lock(struct file *file, struct file_lock *fl) in do_vfs_lock()
776 do_unlk(struct file *filp, int cmd, struct file_lock *fl, int is_local) in do_unlk()
817 do_setlk(struct file *filp, int cmd, struct file_lock *fl, int is_local) in do_setlk()
862 int nfs_lock(struct file *filp, int cmd, struct file_lock *fl) in nfs_lock()
901 int nfs_flock(struct file *filp, int cmd, struct file_lock *fl) in nfs_flock()
Ddelegation.h58 int nfs4_lock_delegation_recall(struct file_lock *fl, struct nfs4_state *state, const nfs4_stateid …
Dnfs4_fs.h196 int (*recover_lock)(struct nfs4_state *, struct file_lock *);
439 extern int nfs4_set_lock_state(struct nfs4_state *state, struct file_lock *fl);
Dinternal.h353 int nfs_lock(struct file *, int, struct file_lock *);
354 int nfs_flock(struct file *, int, struct file_lock *);
Dproc.c637 nfs_proc_lock(struct file *filp, int cmd, struct file_lock *fl) in nfs_proc_lock()
646 static int nfs_lock_check_bounds(const struct file_lock *fl) in nfs_lock_check_bounds()
Dwrite.c1178 is_whole_file_wrlock(struct file_lock *fl) in is_whole_file_wrlock()
1196 struct file_lock *fl; in nfs_can_extend_write()
1212 fl = list_first_entry(&flctx->flc_posix, struct file_lock, in nfs_can_extend_write()
1217 fl = list_first_entry(&flctx->flc_flock, struct file_lock, in nfs_can_extend_write()
Dnfs4state.c909 static void nfs4_fl_copy_lock(struct file_lock *dst, struct file_lock *src) in nfs4_fl_copy_lock()
917 static void nfs4_fl_release_lock(struct file_lock *fl) in nfs4_fl_release_lock()
927 int nfs4_set_lock_state(struct nfs4_state *state, struct file_lock *fl) in nfs4_set_lock_state()
1388 struct file_lock *fl; in nfs4_reclaim_locks()
Dnfs4proc.c5314 static int _nfs4_proc_getlk(struct nfs4_state *state, int cmd, struct file_lock *request) in _nfs4_proc_getlk()
5356 static int nfs4_proc_getlk(struct nfs4_state *state, int cmd, struct file_lock *request) in nfs4_proc_getlk()
5370 static int do_vfs_lock(struct inode *inode, struct file_lock *fl) in do_vfs_lock()
5391 struct file_lock fl;
5396 static struct nfs4_unlockdata *nfs4_alloc_unlockdata(struct file_lock *fl, in nfs4_alloc_unlockdata()
5488 static struct rpc_task *nfs4_do_unlck(struct file_lock *fl, in nfs4_do_unlck()
5527 static int nfs4_proc_unlck(struct nfs4_state *state, int cmd, struct file_lock *request) in nfs4_proc_unlck()
5581 struct file_lock fl;
5588 static struct nfs4_lockdata *nfs4_alloc_lockdata(struct file_lock *fl, in nfs4_alloc_lockdata()
5759 static int _nfs4_do_setlk(struct nfs4_state *state, int cmd, struct file_lock *fl, int recovery_typ… in _nfs4_do_setlk()
[all …]
Dnfs4trace.h509 const struct file_lock *request,
559 const struct file_lock *request, \
Ddelegation.c87 struct file_lock *fl; in nfs_delegation_claim_locks()
Dnfs3proc.c869 nfs3_proc_lock(struct file *filp, int cmd, struct file_lock *fl) in nfs3_proc_lock()
Dnfs4xdr.c1264 static inline int nfs4_lock_type(struct file_lock *fl, int block) in nfs4_lock_type()
1271 static inline uint64_t nfs4_lock_length(struct file_lock *fl) in nfs4_lock_length()
4818 static int decode_lock_denied (struct xdr_stream *xdr, struct file_lock *fl) in decode_lock_denied()
/linux-4.1.27/fs/9p/
Dvfs_file.c131 static int v9fs_file_lock(struct file *filp, int cmd, struct file_lock *fl) in v9fs_file_lock()
150 static int v9fs_file_do_lock(struct file *filp, int cmd, struct file_lock *fl) in v9fs_file_do_lock()
241 static int v9fs_file_getlock(struct file *filp, struct file_lock *fl) in v9fs_file_getlock()
304 static int v9fs_file_lock_dotl(struct file *filp, int cmd, struct file_lock *fl) in v9fs_file_lock_dotl()
340 struct file_lock *fl) in v9fs_file_flock_dotl()
/linux-4.1.27/drivers/staging/lustre/lustre/llite/
Dfile.c2680 ll_file_flock(struct file *file, int cmd, struct file_lock *file_lock) in ll_file_flock() argument
2687 .ei_cbdata = file_lock, in ll_file_flock()
2697 inode->i_ino, file_lock); in ll_file_flock()
2701 if (file_lock->fl_flags & FL_FLOCK) in ll_file_flock()
2703 else if (!(file_lock->fl_flags & FL_POSIX)) in ll_file_flock()
2706 flock.l_flock.owner = (unsigned long)file_lock->fl_owner; in ll_file_flock()
2707 flock.l_flock.pid = file_lock->fl_pid; in ll_file_flock()
2708 flock.l_flock.start = file_lock->fl_start; in ll_file_flock()
2709 flock.l_flock.end = file_lock->fl_end; in ll_file_flock()
2718 if (file_lock->fl_lmops && file_lock->fl_lmops->lm_compare_owner) in ll_file_flock()
[all …]
/linux-4.1.27/fs/gfs2/
Dfile.c985 static int gfs2_lock(struct file *file, int cmd, struct file_lock *fl) in gfs2_lock()
1014 static int do_flock(struct file *file, int cmd, struct file_lock *fl) in do_flock()
1035 &(struct file_lock){.fl_type = F_UNLCK}); in do_flock()
1068 static void do_unflock(struct file *file, struct file_lock *fl) in do_unflock()
1091 static int gfs2_flock(struct file *file, int cmd, struct file_lock *fl) in gfs2_flock()
/linux-4.1.27/fs/cifs/
Dcifsfs.h98 extern int cifs_lock(struct file *, int, struct file_lock *);
Dsmb2file.c91 smb2_unlock_range(struct cifsFileInfo *cfile, struct file_lock *flock, in smb2_unlock_range()
Dsmb2proto.h96 struct file_lock *flock, const unsigned int xid);
Dcifsproto.h140 struct file_lock *flock, const unsigned int xid);
419 struct file_lock *, const __u16 lock_type,
Dfile.c897 __u8 type, struct file_lock *flock) in cifs_lock_test()
990 cifs_posix_lock_test(struct file *file, struct file_lock *flock) in cifs_posix_lock_test()
1018 cifs_posix_lock_set(struct file *file, struct file_lock *flock) in cifs_posix_lock_set()
1129 struct file_lock *flock; in cifs_push_posix_locks()
1240 cifs_read_flock(struct file_lock *flock, __u32 *type, int *lock, int *unlock, in cifs_read_flock()
1287 cifs_getlk(struct file *file, struct file_lock *flock, __u32 type, in cifs_getlk()
1374 cifs_unlock_range(struct cifsFileInfo *cfile, struct file_lock *flock, in cifs_unlock_range()
1481 cifs_setlk(struct file *file, struct file_lock *flock, __u32 type, in cifs_setlk()
1560 int cifs_lock(struct file *file, int cmd, struct file_lock *flock) in cifs_lock()
Dcifsglob.h359 int (*mand_unlock_range)(struct cifsFileInfo *, struct file_lock *,
Dcifsfs.c818 cifs_setlease(struct file *file, long arg, struct file_lock **lease, void **priv) in cifs_setlease()
Dcifssmb.c2396 struct file_lock *pLockData, const __u16 lock_type, in CIFSSMBPosixLock()
/linux-4.1.27/fs/fuse/
Dfile.c2072 struct file_lock *fl) in convert_fuse_file_lock()
2097 const struct file_lock *fl, int opcode, pid_t pid, in fuse_lk_fill()
2120 static int fuse_getlk(struct file *file, struct file_lock *fl) in fuse_getlk()
2140 static int fuse_setlk(struct file *file, struct file_lock *fl, int flock) in fuse_setlk()
2169 static int fuse_file_lock(struct file *file, int cmd, struct file_lock *fl) in fuse_file_lock()
2192 static int fuse_file_flock(struct file *file, int cmd, struct file_lock *fl) in fuse_file_flock()
/linux-4.1.27/drivers/staging/lustre/lustre/ldlm/
Dldlm_flock.c586 struct file_lock *getlk = lock->l_ast_data; in ldlm_flock_completion_ast()
/linux-4.1.27/security/apparmor/
Dlsm.c645 .file_lock = apparmor_file_lock,
/linux-4.1.27/security/
Dcapability.c1031 set_to_cap_if_null(ops, file_lock); in security_fixup_ops()
Dsecurity.c792 return security_ops->file_lock(file, cmd); in security_file_lock()
/linux-4.1.27/security/smack/
Dsmack_lsm.c4307 .file_lock = smack_file_lock,
/linux-4.1.27/security/selinux/
Dhooks.c5918 .file_lock = selinux_file_lock,