Lines Matching refs:fl_flags
73 #define IS_POSIX(fl) (fl->fl_flags & FL_POSIX)
74 #define IS_FLOCK(fl) (fl->fl_flags & FL_FLOCK)
75 #define IS_LEASE(fl) (fl->fl_flags & (FL_LEASE|FL_DELEG|FL_LAYOUT))
76 #define IS_OFDLCK(fl) (fl->fl_flags & FL_OFDLCK)
81 return fl->fl_flags & (FL_UNLOCK_PENDING | FL_DOWNGRADE_PENDING); in lease_breaking()
86 if (fl->fl_flags & FL_UNLOCK_PENDING) in target_leasetype()
88 if (fl->fl_flags & FL_DOWNGRADE_PENDING) in target_leasetype()
211 …p fl_flags=0x%x fl_type=0x%x fl_pid=%u\n", list_type, fl->fl_owner, fl->fl_flags, fl->fl_type, fl-… in locks_dump_ctx_list()
245 fl->fl_owner, fl->fl_flags, fl->fl_type, fl->fl_pid); in locks_check_ctx_file_list()
367 new->fl_flags = fl->fl_flags; in locks_copy_conflock()
436 fl->fl_flags = FL_FLOCK; in flock_make_lock()
495 fl->fl_flags = FL_POSIX; in flock64_to_posix_lock()
561 fl->fl_flags = FL_LEASE; in lease_init()
1035 return (request->fl_flags & FL_EXISTS) ? -ENOENT : 0; in flock_lock_inode()
1038 if (!(request->fl_flags & FL_ACCESS) && (request->fl_type != F_UNLCK)) { in flock_lock_inode()
1046 if (request->fl_flags & FL_ACCESS) in flock_lock_inode()
1060 if ((request->fl_flags & FL_EXISTS) && !found) in flock_lock_inode()
1070 if (!(request->fl_flags & FL_SLEEP)) in flock_lock_inode()
1076 if (request->fl_flags & FL_ACCESS) in flock_lock_inode()
1119 if (!(request->fl_flags & FL_ACCESS) && in posix_lock_inode()
1152 if (!(request->fl_flags & FL_SLEEP)) in posix_lock_inode()
1177 if (request->fl_flags & FL_ACCESS) in posix_lock_inode()
1284 if (request->fl_flags & FL_EXISTS) in posix_lock_inode()
1381 fl->fl_flags &= ~FL_UNLOCK_PENDING; in lease_clear_pending()
1384 fl->fl_flags &= ~FL_DOWNGRADE_PENDING; in lease_clear_pending()
1444 if ((breaker->fl_flags & FL_LAYOUT) != (lease->fl_flags & FL_LAYOUT)) { in leases_conflict()
1448 if ((breaker->fl_flags & FL_DELEG) && (lease->fl_flags & FL_LEASE)) { in leases_conflict()
1499 new_fl->fl_flags = type; in __break_lease()
1527 if (fl->fl_flags & FL_UNLOCK_PENDING) in __break_lease()
1529 fl->fl_flags |= FL_UNLOCK_PENDING; in __break_lease()
1534 fl->fl_flags |= FL_DOWNGRADE_PENDING; in __break_lease()
1724 bool is_deleg = (*flp)->fl_flags & FL_DELEG; in generic_add_lease()
1750 error = check_conflicting_open(filp, arg, lease->fl_flags); in generic_add_lease()
1780 if (fl->fl_flags & FL_UNLOCK_PENDING) in generic_add_lease()
1807 error = check_conflicting_open(filp, arg, lease->fl_flags); in generic_add_lease()
2040 switch (fl->fl_flags & (FL_POSIX|FL_FLOCK)) { in locks_lock_inode_wait()
2108 fl.fl_flags |= FL_SLEEP; in SYSCALL_DEFINE2()
2231 fl->fl_flags |= FL_OFDLCK; in fcntl_getlk()
2365 file_lock->fl_flags |= FL_OFDLCK; in fcntl_setlk()
2374 file_lock->fl_flags |= FL_OFDLCK; in fcntl_setlk()
2378 file_lock->fl_flags |= FL_SLEEP; in fcntl_setlk()
2390 !(file_lock->fl_flags & FL_OFDLCK)) { in fcntl_setlk()
2438 fl->fl_flags |= FL_OFDLCK; in fcntl_getlk64()
2487 file_lock->fl_flags |= FL_OFDLCK; in fcntl_setlk64()
2496 file_lock->fl_flags |= FL_OFDLCK; in fcntl_setlk64()
2500 file_lock->fl_flags |= FL_SLEEP; in fcntl_setlk64()
2512 !(file_lock->fl_flags & FL_OFDLCK)) { in fcntl_setlk64()
2556 lock.fl_flags = FL_POSIX | FL_CLOSE; in locks_remove_posix()
2584 fl.fl_flags |= FL_CLOSE; in locks_remove_flock()
2715 if (fl->fl_flags & FL_ACCESS) in lock_get_status()
2727 if (fl->fl_flags & FL_DELEG) in lock_get_status()