/linux-4.1.27/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),
|
/linux-4.1.27/fs/lockd/ |
H A D | clntproc.c | 478 switch (fl->fl_flags & (FL_POSIX|FL_FLOCK)) { do_vfs_lock() 518 unsigned char fl_flags = fl->fl_flags; nlmclnt_lock() local 526 fl->fl_flags |= FL_ACCESS; nlmclnt_lock() 528 fl->fl_flags = fl_flags; nlmclnt_lock() 576 fl->fl_flags |= FL_SLEEP; nlmclnt_lock() 580 fl->fl_flags = fl_flags; nlmclnt_lock() 590 if (resp->status == nlm_lck_denied && (fl_flags & FL_SLEEP)) nlmclnt_lock() 610 fl->fl_flags = fl_flags; nlmclnt_lock() 665 unsigned char fl_flags = fl->fl_flags; nlmclnt_unlock() local 672 fl->fl_flags |= FL_EXISTS; nlmclnt_unlock() 676 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.1.27/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() 322 new->fl_flags = fl->fl_flags; locks_copy_conflock() 385 fl->fl_flags = FL_FLOCK; flock_make_lock() 446 fl->fl_flags = FL_POSIX; flock64_to_posix_lock() 512 fl->fl_flags = FL_LEASE; lease_init() 878 return (request->fl_flags & FL_EXISTS) ? -ENOENT : 0; flock_lock_inode() 881 if (!(request->fl_flags & FL_ACCESS) && (request->fl_type != F_UNLCK)) { flock_lock_inode() 888 if (request->fl_flags & FL_ACCESS) flock_lock_inode() 902 if ((request->fl_flags & FL_EXISTS) && !found) flock_lock_inode() 912 if (!(request->fl_flags & FL_SLEEP)) flock_lock_inode() 918 if (request->fl_flags & FL_ACCESS) flock_lock_inode() 955 if (!(request->fl_flags & FL_ACCESS) && __posix_lock_file() 975 if (!(request->fl_flags & FL_SLEEP)) __posix_lock_file() 994 if (request->fl_flags & FL_ACCESS) __posix_lock_file() 1100 if (request->fl_flags & FL_EXISTS) __posix_lock_file() 1250 fl.fl_flags = FL_POSIX | FL_ACCESS; locks_mandatory_area() 1260 fl.fl_flags &= ~FL_SLEEP; locks_mandatory_area() 1267 fl.fl_flags |= FL_SLEEP; locks_mandatory_area() 1295 fl->fl_flags &= ~FL_UNLOCK_PENDING; lease_clear_pending() 1298 fl->fl_flags &= ~FL_DOWNGRADE_PENDING; lease_clear_pending() 1353 if ((breaker->fl_flags & FL_LAYOUT) != (lease->fl_flags & FL_LAYOUT)) leases_conflict() 1355 if ((breaker->fl_flags & FL_DELEG) && (lease->fl_flags & FL_LEASE)) leases_conflict() 1400 new_fl->fl_flags = type; __break_lease() 1426 if (fl->fl_flags & FL_UNLOCK_PENDING) __break_lease() 1428 fl->fl_flags |= FL_UNLOCK_PENDING; __break_lease() 1433 fl->fl_flags |= FL_DOWNGRADE_PENDING; __break_lease() 1601 bool is_deleg = (*flp)->fl_flags & FL_DELEG; generic_add_lease() 1633 error = check_conflicting_open(dentry, arg, lease->fl_flags); generic_add_lease() 1663 if (fl->fl_flags & FL_UNLOCK_PENDING) generic_add_lease() 1690 error = check_conflicting_open(dentry, arg, lease->fl_flags); generic_add_lease() 1922 lock->fl_flags |= FL_SLEEP; SYSCALL_DEFINE2() 2020 file_lock.fl_flags |= FL_OFDLCK; fcntl_getlk() 2176 file_lock->fl_flags |= FL_OFDLCK; fcntl_setlk() 2185 file_lock->fl_flags |= FL_OFDLCK; fcntl_setlk() 2189 file_lock->fl_flags |= FL_SLEEP; fcntl_setlk() 2246 file_lock.fl_flags |= FL_OFDLCK; fcntl_getlk64() 2318 file_lock->fl_flags |= FL_OFDLCK; fcntl_setlk64() 2327 file_lock->fl_flags |= FL_OFDLCK; fcntl_setlk64() 2331 file_lock->fl_flags |= FL_SLEEP; fcntl_setlk64() 2381 lock.fl_flags = FL_POSIX | FL_CLOSE; locks_remove_posix() 2406 .fl_flags = FL_FLOCK, locks_remove_flock() 2525 if (fl->fl_flags & FL_ACCESS) lock_get_status() 2542 if (fl->fl_flags & FL_DELEG) lock_get_status()
|
/linux-4.1.27/fs/ocfs2/ |
H A D | locks.c | 115 if (!(fl->fl_flags & FL_FLOCK)) ocfs2_flock() 135 if (!(fl->fl_flags & FL_POSIX)) ocfs2_lock()
|
/linux-4.1.27/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.1.27/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.1.27/fs/9p/ |
H A D | vfs_file.c | 161 if ((fl->fl_flags & FL_POSIX) != FL_POSIX) v9fs_file_do_lock() 352 if (!(fl->fl_flags & FL_FLOCK)) v9fs_file_flock_dotl() 360 fl->fl_flags |= FL_POSIX; v9fs_file_flock_dotl() 361 fl->fl_flags ^= FL_FLOCK; v9fs_file_flock_dotl()
|
/linux-4.1.27/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.1.27/fs/nfs/ |
H A D | file.c | 762 switch (fl->fl_flags & (FL_POSIX|FL_FLOCK)) { do_vfs_lock() 869 filp, fl->fl_type, fl->fl_flags, nfs_lock() 907 filp, fl->fl_type, fl->fl_flags); nfs_flock() 909 if (!(fl->fl_flags & FL_FLOCK)) nfs_flock()
|
H A D | nfs4proc.c | 5373 switch (fl->fl_flags & (FL_POSIX|FL_FLOCK)) { do_vfs_lock() 5537 unsigned char fl_flags = request->fl_flags; nfs4_proc_unlck() local 5541 request->fl_flags |= FL_EXISTS; nfs4_proc_unlck() 5571 request->fl_flags = fl_flags; nfs4_proc_unlck() 5686 data->fl.fl_flags &= ~(FL_SLEEP | FL_ACCESS); nfs4_lock_done() 5918 unsigned char fl_flags = request->fl_flags; _nfs4_proc_setlk() local 5921 if ((fl_flags & FL_POSIX) && _nfs4_proc_setlk() 5928 request->fl_flags |= FL_ACCESS; _nfs4_proc_setlk() 5936 request->fl_flags = fl_flags & ~FL_SLEEP; _nfs4_proc_setlk() 5944 request->fl_flags = fl_flags; _nfs4_proc_setlk()
|
/linux-4.1.27/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.1.27/fs/nfsd/ |
H A D | nfs4layouts.c | 167 fl->fl_flags = FL_LAYOUT; nfsd4_layout_setlease()
|
H A D | nfs4state.c | 3988 fl->fl_flags = FL_DELEG; nfs4_alloc_init_lease() 5556 file_lock->fl_flags = FL_POSIX; nfsd4_lock() 5692 file_lock->fl_flags = FL_POSIX; nfsd4_lockt() 5754 file_lock->fl_flags = FL_POSIX; nfsd4_locku()
|
/linux-4.1.27/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.1.27/drivers/staging/lustre/lustre/llite/ |
H A D | file.c | 2701 if (file_lock->fl_flags & FL_FLOCK) ll_file_flock() 2703 else if (!(file_lock->fl_flags & FL_POSIX)) ll_file_flock() 2784 if ((file_lock->fl_flags & FL_FLOCK) && ll_file_flock() 2787 if ((file_lock->fl_flags & FL_POSIX) && ll_file_flock()
|
/linux-4.1.27/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.1.27/include/linux/ |
H A D | fs.h | 969 unsigned int fl_flags; member in struct:file_lock
|