Lines Matching defs:style
3177 /* no conflict if it's ours - unless the lock style doesn't match */
3567 int style,
3594 newnflp->nfl_flags |= style;
3597 if ((style == NFS_FILE_LOCK_STYLE_FLOCK) && (type == F_WRLCK)) {
3599 * For exclusive flock-style locks, if we block waiting for the
3601 * flock-style lock. So, the first thing we do is check if we
3602 * have a shared flock-style lock.
3913 if ((style == NFS_FILE_LOCK_STYLE_POSIX) && (nofp->nof_flags & NFS_OPEN_FILE_POSIXLOCK)) {
3973 * Release all (same style) locks within the given range.
3982 int style,
4020 if ((nflp->nfl_flags & NFS_FILE_LOCK_STYLE_MASK) != style)
4051 * Don't unlock ranges that are held by other-style locks.
4052 * If style is posix, don't send any unlock rpcs if flock is held.
4053 * If we unlock an flock, don't send unlock rpcs for any posix-style
4056 if ((style == NFS_FILE_LOCK_STYLE_POSIX) &&
4060 if ((style == NFS_FILE_LOCK_STYLE_FLOCK) &&
4107 if ((nflp->nfl_flags & NFS_FILE_LOCK_STYLE_MASK) != style)
4240 int error = 0, modified, style;
4313 style = (flags & F_FLOCK) ? NFS_FILE_LOCK_STYLE_FLOCK : NFS_FILE_LOCK_STYLE_POSIX;
4314 if ((style == NFS_FILE_LOCK_STYLE_FLOCK) && ((start != 0) || (end != UINT64_MAX)))
4356 error = nfs_advlock_unlock(np, nofp, nlop, start, end, style, ctx);
4360 error = nfs_advlock_setlock(np, nofp, nlop, op, start, end, style, fl->l_type, ctx);