Home
last modified time | relevance | path

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

/linux-4.4.14/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()
247 static void locks_init_lock_heads(struct file_lock *fl) in locks_init_lock_heads()
256 struct file_lock *locks_alloc_lock(void) in locks_alloc_lock()
258 struct file_lock *fl = kmem_cache_zalloc(filelock_cache, GFP_KERNEL); in locks_alloc_lock()
267 void locks_release_private(struct file_lock *fl) in locks_release_private()
286 void locks_free_lock(struct file_lock *fl) in locks_free_lock()
301 struct file_lock *fl; in locks_dispose_list()
304 fl = list_first_entry(dispose, struct file_lock, fl_list); in locks_dispose_list()
310 void locks_init_lock(struct file_lock *fl) in locks_init_lock()
[all …]
Dfile.c166 __releases(files->file_lock) in expand_fdtable()
167 __acquires(files->file_lock) in expand_fdtable()
171 spin_unlock(&files->file_lock); in expand_fdtable()
180 spin_lock(&files->file_lock); in expand_fdtable()
211 __releases(files->file_lock) in expand_files()
212 __acquires(files->file_lock) in expand_files()
229 spin_unlock(&files->file_lock); in expand_files()
232 spin_lock(&files->file_lock); in expand_files()
303 spin_lock_init(&newf->file_lock); in dup_fd()
314 spin_lock(&oldf->file_lock); in dup_fd()
[all …]
Dlibfs.c1088 simple_nosetlease(struct file *filp, long arg, struct file_lock **flp, in simple_nosetlease()
/linux-4.4.14/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_delete_lease, TP_PROTO(struct inode *inode, struct file_lock *…
87 DEFINE_EVENT(filelock_lease, time_out_leases, TP_PROTO(struct inode *inode, struct file_lock *fl),
91 TP_PROTO(struct inode *inode, struct file_lock *fl),
/linux-4.4.14/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.4.14/fs/ocfs2/
Dlocks.c39 int cmd, struct file_lock *fl) in ocfs2_do_flock()
70 &(struct file_lock) { in ocfs2_do_flock()
97 static int ocfs2_do_funlock(struct file *file, int cmd, struct file_lock *fl) in ocfs2_do_funlock()
113 int ocfs2_flock(struct file *file, int cmd, struct file_lock *fl) in ocfs2_flock()
133 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.c748 struct file_lock *fl) in user_plock()
/linux-4.4.14/include/linux/
Ddlm_plock.h14 int cmd, struct file_lock *fl);
16 struct file_lock *fl);
18 struct file_lock *fl);
Dfs.h925 struct file_lock;
928 void (*fl_copy_lock)(struct file_lock *, struct file_lock *);
929 void (*fl_release_private)(struct file_lock *);
933 int (*lm_compare_owner)(struct file_lock *, struct file_lock *);
934 unsigned long (*lm_owner_key)(struct file_lock *);
937 void (*lm_notify)(struct file_lock *); /* unblock callback */
938 int (*lm_grant)(struct file_lock *, int);
939 bool (*lm_break)(struct file_lock *);
940 int (*lm_change)(struct file_lock *, int, struct list_head *);
941 void (*lm_setup)(struct file_lock *, void **);
[all …]
Dfdtable.h59 spinlock_t file_lock ____cacheline_aligned_in_smp;
72 rcu_dereference_check((fdtfd), lockdep_is_held(&(files)->file_lock))
92 !lockdep_is_held(&files->file_lock), in fcheck_files()
Dnfs_xdr.h488 struct file_lock * fl;
510 struct file_lock * fl;
524 struct file_lock * fl;
530 struct file_lock * denied; /* LOCK, LOCKT failed */
1558 int (*lock)(struct file *, int, struct file_lock *);
1559 int (*lock_check_bounds)(const struct file_lock *);
Dlsm_hooks.h1435 int (*file_lock)(struct file *file, unsigned int cmd); member
1699 struct list_head file_lock; member
/linux-4.4.14/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()
Dxdr.c116 struct file_lock *fl = &lock->fl; in nlm_decode_lock()
158 struct file_lock *fl = &resp->lock.fl; in nlm_encode_testres()
Dxdr4.c108 struct file_lock *fl = &lock->fl; in nlm4_decode_lock()
151 struct file_lock *fl = &resp->lock.fl; in nlm4_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.4.14/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
446 int (*lock) (struct file *, int, struct file_lock *);
[all …]
Dvfs.txt823 int (*lock) (struct file *, int, struct file_lock *);
827 int (*flock) (struct file *, int, struct file_lock *);
830 int (*setlease)(struct file *, long, struct file_lock **, void **);
/linux-4.4.14/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.4.14/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.h967 extern int ceph_lock(struct file *file, int cmd, struct file_lock *fl);
968 extern int ceph_flock(struct file *file, int cmd, struct file_lock *fl);
977 extern int lock_to_ceph_filelock(struct file_lock *fl, struct ceph_filelock *c);
/linux-4.4.14/include/linux/lockd/
Dlockd.h209 struct nlm_wait * nlmclnt_prepare_block(struct nlm_host *host, struct file_lock *fl);
215 int nlmclnt_reclaim(struct nlm_host *, struct file_lock *,
355 static inline int nlm_compare_locks(const struct file_lock *fl1, in nlm_compare_locks()
356 const struct file_lock *fl2) in nlm_compare_locks()
Dbind.h56 struct file_lock *fl);
Dxdr.h43 struct file_lock fl;
/linux-4.4.14/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.4.14/fs/nfsd/
Dnfs4state.c3672 nfsd_break_deleg_cb(struct file_lock *fl) in nfsd_break_deleg_cb()
3709 nfsd_change_deleg_cb(struct file_lock *onlist, int arg, in nfsd_change_deleg_cb()
4020 static struct file_lock *nfs4_alloc_init_lease(struct nfs4_file *fp, int flag) in nfs4_alloc_init_lease()
4022 struct file_lock *fl; in nfs4_alloc_init_lease()
4051 struct file_lock *fl; in nfs4_setlease()
5239 nfs4_transform_lock_offset(struct file_lock *lock) in nfs4_transform_lock_offset()
5271 nfs4_set_lock_denied(struct file_lock *fl, struct nfsd4_lock_denied *deny) in nfs4_set_lock_denied()
5527 struct file_lock *file_lock = NULL; in nfsd4_lock() local
5528 struct file_lock *conflock = NULL; in nfsd4_lock()
5599 file_lock = locks_alloc_lock(); in nfsd4_lock()
[all …]
Dnfs4layouts.c159 struct file_lock *fl; in nfsd4_layout_setlease()
675 nfsd4_layout_lm_break(struct file_lock *fl) in nfsd4_layout_lm_break()
688 nfsd4_layout_lm_change(struct file_lock *onlist, int arg, in nfsd4_layout_lm_change()
/linux-4.4.14/Documentation/RCU/
Dlockdep.txt69 lockdep_is_held(&files->file_lock) ||
77 2. with files->file_lock held, or
81 RCU read-side critical sections, in case (2) the ->file_lock prevents
88 lockdep_is_held(&files->file_lock) ||
/linux-4.4.14/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.4.14/fs/nfs/
Dfile.c711 do_getlk(struct file *filp, int cmd, struct file_lock *fl, int is_local) in do_getlk()
739 static int do_vfs_lock(struct file *file, struct file_lock *fl) in do_vfs_lock()
745 do_unlk(struct file *filp, int cmd, struct file_lock *fl, int is_local) in do_unlk()
786 do_setlk(struct file *filp, int cmd, struct file_lock *fl, int is_local) in do_setlk()
831 int nfs_lock(struct file *filp, int cmd, struct file_lock *fl) in nfs_lock()
870 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.h198 int (*recover_lock)(struct nfs4_state *, struct file_lock *);
440 extern int nfs4_set_lock_state(struct nfs4_state *state, struct file_lock *fl);
Dinternal.h369 int nfs_lock(struct file *, int, struct file_lock *);
370 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.c1198 is_whole_file_wrlock(struct file_lock *fl) in is_whole_file_wrlock()
1216 struct file_lock *fl; in nfs_can_extend_write()
1232 fl = list_first_entry(&flctx->flc_posix, struct file_lock, in nfs_can_extend_write()
1237 fl = list_first_entry(&flctx->flc_flock, struct file_lock, in nfs_can_extend_write()
Dnfs4state.c908 static void nfs4_fl_copy_lock(struct file_lock *dst, struct file_lock *src) in nfs4_fl_copy_lock()
916 static void nfs4_fl_release_lock(struct file_lock *fl) in nfs4_fl_release_lock()
926 int nfs4_set_lock_state(struct nfs4_state *state, struct file_lock *fl) in nfs4_set_lock_state()
1387 struct file_lock *fl; in nfs4_reclaim_locks()
Dnfs4proc.c5457 static int _nfs4_proc_getlk(struct nfs4_state *state, int cmd, struct file_lock *request) in _nfs4_proc_getlk()
5499 static int nfs4_proc_getlk(struct nfs4_state *state, int cmd, struct file_lock *request) in nfs4_proc_getlk()
5513 static int do_vfs_lock(struct inode *inode, struct file_lock *fl) in do_vfs_lock()
5523 struct file_lock fl;
5528 static struct nfs4_unlockdata *nfs4_alloc_unlockdata(struct file_lock *fl, in nfs4_alloc_unlockdata()
5620 static struct rpc_task *nfs4_do_unlck(struct file_lock *fl, in nfs4_do_unlck()
5659 static int nfs4_proc_unlck(struct nfs4_state *state, int cmd, struct file_lock *request) in nfs4_proc_unlck()
5713 struct file_lock fl;
5720 static struct nfs4_lockdata *nfs4_alloc_lockdata(struct file_lock *fl, in nfs4_alloc_lockdata()
5891 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.c1281 static inline int nfs4_lock_type(struct file_lock *fl, int block) in nfs4_lock_type()
1288 static inline uint64_t nfs4_lock_length(struct file_lock *fl) in nfs4_lock_length()
4900 static int decode_lock_denied (struct xdr_stream *xdr, struct file_lock *fl) in decode_lock_denied()
/linux-4.4.14/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()
242 static int v9fs_file_getlock(struct file *filp, struct file_lock *fl) in v9fs_file_getlock()
305 static int v9fs_file_lock_dotl(struct file *filp, int cmd, struct file_lock *fl) in v9fs_file_lock_dotl()
341 struct file_lock *fl) in v9fs_file_flock_dotl()
/linux-4.4.14/drivers/staging/lustre/lustre/llite/
Dfile.c2649 ll_file_flock(struct file *file, int cmd, struct file_lock *file_lock) in ll_file_flock() argument
2656 .ei_cbdata = file_lock, in ll_file_flock()
2666 inode->i_ino, file_lock); in ll_file_flock()
2670 if (file_lock->fl_flags & FL_FLOCK) in ll_file_flock()
2672 else if (!(file_lock->fl_flags & FL_POSIX)) in ll_file_flock()
2675 flock.l_flock.owner = (unsigned long)file_lock->fl_owner; in ll_file_flock()
2676 flock.l_flock.pid = file_lock->fl_pid; in ll_file_flock()
2677 flock.l_flock.start = file_lock->fl_start; in ll_file_flock()
2678 flock.l_flock.end = file_lock->fl_end; in ll_file_flock()
2687 if (file_lock->fl_lmops && file_lock->fl_lmops->lm_compare_owner) in ll_file_flock()
[all …]
/linux-4.4.14/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.4.14/fs/cifs/
Dcifsfs.h98 extern int cifs_lock(struct file *, int, struct file_lock *);
Dsmb2proto.h96 struct file_lock *flock, const unsigned int xid);
Dcifsproto.h138 struct file_lock *flock, const unsigned int xid);
417 struct file_lock *, const __u16 lock_type,
Dsmb2file.c110 smb2_unlock_range(struct cifsFileInfo *cfile, struct file_lock *flock, in smb2_unlock_range()
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.h363 int (*mand_unlock_range)(struct cifsFileInfo *, struct file_lock *,
Dcifsfs.c825 cifs_setlease(struct file *file, long arg, struct file_lock **lease, void **priv) in cifs_setlease()
Dcifssmb.c2402 struct file_lock *pLockData, const __u16 lock_type, in CIFSSMBPosixLock()
/linux-4.4.14/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.4.14/drivers/staging/lustre/lustre/ldlm/
Dldlm_flock.c447 struct file_lock *getlk = lock->l_ast_data; in ldlm_flock_completion_ast()
/linux-4.4.14/security/
Dsecurity.c812 return call_int_hook(file_lock, 0, file, cmd); in security_file_lock()
1668 .file_lock = LIST_HEAD_INIT(security_hook_heads.file_lock),
/linux-4.4.14/security/apparmor/
Dlsm.c632 LSM_HOOK_INIT(file_lock, apparmor_file_lock),
/linux-4.4.14/security/smack/
Dsmack_lsm.c4618 LSM_HOOK_INIT(file_lock, smack_file_lock),
/linux-4.4.14/security/selinux/
Dhooks.c5930 LSM_HOOK_INIT(file_lock, selinux_file_lock),