/linux-4.4.14/include/trace/events/ |
H A D | filelock.h | 49 __field(unsigned int, fl_flags) 61 __entry->fl_flags = fl ? fl->fl_flags : 0; 67 TP_printk("fl=0x%p dev=0x%x:0x%x ino=0x%lx fl_next=0x%p fl_owner=0x%p fl_flags=%s fl_type=%s fl_break_time=%lu fl_downgrade_time=%lu", 70 show_fl_flags(__entry->fl_flags), 102 __field(unsigned int, fl_flags) 113 __entry->fl_flags = fl ? fl->fl_flags : 0; 117 TP_printk("dev=0x%x:0x%x ino=0x%lx wcount=%d dcount=%d icount=%d fl_owner=0x%p fl_flags=%s fl_type=%s", 121 show_fl_flags(__entry->fl_flags),
|
/linux-4.4.14/fs/ocfs2/ |
H A D | locks.c | 72 .fl_flags = FL_FLOCK ocfs2_do_flock() 118 if (!(fl->fl_flags & FL_FLOCK)) ocfs2_flock() 138 if (!(fl->fl_flags & FL_POSIX)) ocfs2_lock()
|
/linux-4.4.14/fs/lockd/ |
H A D | clntproc.c | 507 unsigned char fl_flags = fl->fl_flags; nlmclnt_lock() local 515 fl->fl_flags |= FL_ACCESS; nlmclnt_lock() 517 fl->fl_flags = fl_flags; nlmclnt_lock() 565 fl->fl_flags |= FL_SLEEP; nlmclnt_lock() 569 fl->fl_flags = fl_flags; nlmclnt_lock() 579 if (resp->status == nlm_lck_denied && (fl_flags & FL_SLEEP)) nlmclnt_lock() 599 fl->fl_flags = fl_flags; nlmclnt_lock() 654 unsigned char fl_flags = fl->fl_flags; nlmclnt_unlock() local 661 fl->fl_flags |= FL_EXISTS; nlmclnt_unlock() 665 fl->fl_flags = fl_flags; nlmclnt_unlock()
|
H A D | svclock.c | 238 call->a_args.lock.fl.fl_flags |= FL_SLEEP; nlmsvc_create_block() 427 lock->fl.fl_flags &= ~FL_SLEEP; nlmsvc_lock() 456 lock->fl.fl_flags &= ~FL_SLEEP; nlmsvc_lock() 458 lock->fl.fl_flags &= ~FL_SLEEP; nlmsvc_lock() 755 lock->fl.fl_flags |= FL_SLEEP; nlmsvc_grant_blocked() 759 lock->fl.fl_flags &= ~FL_SLEEP; nlmsvc_grant_blocked()
|
H A D | xdr.c | 130 fl->fl_flags = FL_POSIX; nlm_decode_lock()
|
H A D | xdr4.c | 122 fl->fl_flags = FL_POSIX; nlm4_decode_lock()
|
H A D | clnt4xdr.c | 306 fl->fl_flags = FL_POSIX; decode_nlm4_holder()
|
H A D | clntxdr.c | 300 fl->fl_flags = FL_POSIX; decode_nlm_holder()
|
/linux-4.4.14/fs/ |
H A D | locks.c | 138 #define IS_POSIX(fl) (fl->fl_flags & FL_POSIX) 139 #define IS_FLOCK(fl) (fl->fl_flags & FL_FLOCK) 140 #define IS_LEASE(fl) (fl->fl_flags & (FL_LEASE|FL_DELEG|FL_LAYOUT)) 141 #define IS_OFDLCK(fl) (fl->fl_flags & FL_OFDLCK) 145 return fl->fl_flags & (FL_UNLOCK_PENDING | FL_DOWNGRADE_PENDING); lease_breaking() 150 if (fl->fl_flags & FL_UNLOCK_PENDING) target_leasetype() 152 if (fl->fl_flags & FL_DOWNGRADE_PENDING) target_leasetype() 326 new->fl_flags = fl->fl_flags; locks_copy_conflock() 389 fl->fl_flags = FL_FLOCK; flock_make_lock() 450 fl->fl_flags = FL_POSIX; flock64_to_posix_lock() 516 fl->fl_flags = FL_LEASE; lease_init() 882 return (request->fl_flags & FL_EXISTS) ? -ENOENT : 0; flock_lock_inode() 885 if (!(request->fl_flags & FL_ACCESS) && (request->fl_type != F_UNLCK)) { flock_lock_inode() 892 if (request->fl_flags & FL_ACCESS) flock_lock_inode() 906 if ((request->fl_flags & FL_EXISTS) && !found) flock_lock_inode() 916 if (!(request->fl_flags & FL_SLEEP)) flock_lock_inode() 922 if (request->fl_flags & FL_ACCESS) flock_lock_inode() 959 if (!(request->fl_flags & FL_ACCESS) && __posix_lock_file() 979 if (!(request->fl_flags & FL_SLEEP)) __posix_lock_file() 998 if (request->fl_flags & FL_ACCESS) __posix_lock_file() 1104 if (request->fl_flags & FL_EXISTS) __posix_lock_file() 1252 fl.fl_flags = FL_POSIX | FL_ACCESS; locks_mandatory_area() 1262 fl.fl_flags &= ~FL_SLEEP; locks_mandatory_area() 1269 fl.fl_flags |= FL_SLEEP; locks_mandatory_area() 1297 fl->fl_flags &= ~FL_UNLOCK_PENDING; lease_clear_pending() 1300 fl->fl_flags &= ~FL_DOWNGRADE_PENDING; lease_clear_pending() 1355 if ((breaker->fl_flags & FL_LAYOUT) != (lease->fl_flags & FL_LAYOUT)) leases_conflict() 1357 if ((breaker->fl_flags & FL_DELEG) && (lease->fl_flags & FL_LEASE)) leases_conflict() 1402 new_fl->fl_flags = type; __break_lease() 1429 if (fl->fl_flags & FL_UNLOCK_PENDING) __break_lease() 1431 fl->fl_flags |= FL_UNLOCK_PENDING; __break_lease() 1436 fl->fl_flags |= FL_DOWNGRADE_PENDING; __break_lease() 1607 bool is_deleg = (*flp)->fl_flags & FL_DELEG; generic_add_lease() 1639 error = check_conflicting_open(dentry, arg, lease->fl_flags); generic_add_lease() 1669 if (fl->fl_flags & FL_UNLOCK_PENDING) generic_add_lease() 1696 error = check_conflicting_open(dentry, arg, lease->fl_flags); generic_add_lease() 1891 switch (fl->fl_flags & (FL_POSIX|FL_FLOCK)) { locks_lock_inode_wait() 1950 lock->fl_flags |= FL_SLEEP; SYSCALL_DEFINE2() 2048 file_lock.fl_flags |= FL_OFDLCK; fcntl_getlk() 2204 file_lock->fl_flags |= FL_OFDLCK; fcntl_setlk() 2213 file_lock->fl_flags |= FL_OFDLCK; fcntl_setlk() 2217 file_lock->fl_flags |= FL_SLEEP; fcntl_setlk() 2274 file_lock.fl_flags |= FL_OFDLCK; fcntl_getlk64() 2346 file_lock->fl_flags |= FL_OFDLCK; fcntl_setlk64() 2355 file_lock->fl_flags |= FL_OFDLCK; fcntl_setlk64() 2359 file_lock->fl_flags |= FL_SLEEP; fcntl_setlk64() 2410 lock.fl_flags = FL_POSIX | FL_CLOSE; locks_remove_posix() 2435 .fl_flags = FL_FLOCK, locks_remove_flock() 2554 if (fl->fl_flags & FL_ACCESS) lock_get_status() 2571 if (fl->fl_flags & FL_DELEG) lock_get_status()
|
/linux-4.4.14/fs/dlm/ |
H A D | plock.c | 217 flc->fl_flags &= ~FL_SLEEP; dlm_plock_callback() 250 unsigned char fl_flags = fl->fl_flags; dlm_posix_unlock() local 263 fl->fl_flags |= FL_EXISTS; dlm_posix_unlock() 286 if (fl->fl_flags & FL_CLOSE) { dlm_posix_unlock() 313 fl->fl_flags = fl_flags; dlm_posix_unlock() 369 fl->fl_flags = FL_POSIX; dlm_posix_get()
|
/linux-4.4.14/fs/afs/ |
H A D | flock.c | 285 if (vnode->status.lock_count != 0 && !(fl->fl_flags & FL_SLEEP)) { afs_do_setlk() 343 if (!(fl->fl_flags & FL_SLEEP)) { afs_do_setlk() 522 fl->fl_type, fl->fl_flags, afs_lock() 545 fl->fl_type, fl->fl_flags); afs_flock() 554 if (!(fl->fl_flags & FL_FLOCK)) afs_flock()
|
/linux-4.4.14/fs/9p/ |
H A D | vfs_file.c | 161 if ((fl->fl_flags & FL_POSIX) != FL_POSIX) v9fs_file_do_lock() 353 if (!(fl->fl_flags & FL_FLOCK)) v9fs_file_flock_dotl() 361 fl->fl_flags |= FL_POSIX; v9fs_file_flock_dotl() 362 fl->fl_flags ^= FL_FLOCK; v9fs_file_flock_dotl()
|
/linux-4.4.14/fs/ceph/ |
H A D | locks.c | 164 if (!(fl->fl_flags & FL_POSIX)) ceph_lock() 210 if (!(fl->fl_flags & FL_FLOCK)) ceph_flock()
|
/linux-4.4.14/fs/nfs/ |
H A D | file.c | 838 filp, fl->fl_type, fl->fl_flags, nfs_lock() 876 filp, fl->fl_type, fl->fl_flags); nfs_flock() 878 if (!(fl->fl_flags & FL_FLOCK)) nfs_flock()
|
H A D | nfs4proc.c | 5669 unsigned char fl_flags = request->fl_flags; nfs4_proc_unlck() local 5673 request->fl_flags |= FL_EXISTS; nfs4_proc_unlck() 5703 request->fl_flags = fl_flags; nfs4_proc_unlck() 5818 data->fl.fl_flags &= ~(FL_SLEEP | FL_ACCESS); nfs4_lock_done() 6050 unsigned char fl_flags = request->fl_flags; _nfs4_proc_setlk() local 6053 if ((fl_flags & FL_POSIX) && _nfs4_proc_setlk() 6060 request->fl_flags |= FL_ACCESS; _nfs4_proc_setlk() 6068 request->fl_flags = fl_flags & ~FL_SLEEP; _nfs4_proc_setlk() 6076 request->fl_flags = fl_flags; _nfs4_proc_setlk()
|
/linux-4.4.14/fs/cifs/ |
H A D | file.c | 996 if ((flock->fl_flags & FL_POSIX) == 0) cifs_posix_lock_test() 1023 if ((flock->fl_flags & FL_POSIX) == 0) cifs_posix_lock_set() 1243 if (flock->fl_flags & FL_POSIX) cifs_read_flock() 1245 if (flock->fl_flags & FL_FLOCK) cifs_read_flock() 1247 if (flock->fl_flags & FL_SLEEP) { cifs_read_flock() 1251 if (flock->fl_flags & FL_ACCESS) cifs_read_flock() 1253 if (flock->fl_flags & FL_LEASE) cifs_read_flock() 1255 if (flock->fl_flags & cifs_read_flock() 1258 cifs_dbg(FYI, "Unknown lock flags 0x%x\n", flock->fl_flags); cifs_read_flock() 1555 if (flock->fl_flags & FL_POSIX && !rc) cifs_setlk() 1577 cmd, flock->fl_flags, flock->fl_type, cifs_lock()
|
/linux-4.4.14/fs/nfsd/ |
H A D | nfs4layouts.c | 167 fl->fl_flags = FL_LAYOUT; nfsd4_layout_setlease()
|
H A D | nfs4state.c | 4028 fl->fl_flags = FL_DELEG; nfs4_alloc_init_lease() 5638 file_lock->fl_flags = FL_POSIX; nfsd4_lock() 5771 file_lock->fl_flags = FL_POSIX; nfsd4_lockt() 5833 file_lock->fl_flags = FL_POSIX; nfsd4_locku()
|
/linux-4.4.14/fs/gfs2/ |
H A D | file.c | 991 if (!(fl->fl_flags & FL_POSIX)) gfs2_lock() 1093 if (!(fl->fl_flags & FL_FLOCK)) gfs2_flock()
|
/linux-4.4.14/fs/fuse/ |
H A D | file.c | 2146 int opcode = (fl->fl_flags & FL_SLEEP) ? FUSE_SETLKW : FUSE_SETLK; fuse_setlk() 2156 if (fl->fl_flags & FL_CLOSE) fuse_setlk()
|
/linux-4.4.14/drivers/staging/lustre/lustre/llite/ |
H A D | file.c | 2670 if (file_lock->fl_flags & FL_FLOCK) ll_file_flock() 2672 else if (!(file_lock->fl_flags & FL_POSIX)) ll_file_flock()
|
/linux-4.4.14/include/linux/ |
H A D | fs.h | 985 unsigned int fl_flags; member in struct:file_lock
|