Lines Matching refs:nflp2
3169 * (nflp1 is the new lock. nflp2 is the existing lock.)
3172 nfs_file_lock_conflict(struct nfs_file_lock *nflp1, struct nfs_file_lock *nflp2, int *willsplit)
3175 if ((nflp1->nfl_flags & NFS_FILE_LOCK_DEAD) || (nflp2->nfl_flags & NFS_FILE_LOCK_DEAD))
3178 if ((nflp1->nfl_owner == nflp2->nfl_owner) &&
3179 ((nflp1->nfl_flags & NFS_FILE_LOCK_STYLE_MASK) == (nflp2->nfl_flags & NFS_FILE_LOCK_STYLE_MASK))) {
3180 if (willsplit && (nflp1->nfl_type != nflp2->nfl_type) &&
3181 (nflp1->nfl_start > nflp2->nfl_start) &&
3182 (nflp1->nfl_end < nflp2->nfl_end))
3187 if ((nflp1->nfl_start > nflp2->nfl_end) || (nflp1->nfl_end < nflp2->nfl_start))
3190 if ((nflp1->nfl_type != F_WRLCK) && (nflp2->nfl_type != F_WRLCK))
3572 struct nfs_file_lock *newnflp, *nflp, *nflp2 = NULL, *nextnflp, *flocknflp = NULL;
3714 nflp2 = nfs_file_lock_alloc(nlop);
3715 if (!nflp2) {
3845 if (nflp2)
3846 nfs_file_lock_destroy(nflp2);
3882 nflp2->nfl_flags |= (nflp->nfl_flags & (NFS_FILE_LOCK_STYLE_MASK|NFS_FILE_LOCK_DELEGATED));
3883 nflp2->nfl_type = nflp->nfl_type;
3884 nflp2->nfl_start = newnflp->nfl_end + 1;
3885 nflp2->nfl_end = nflp->nfl_end;
3887 TAILQ_INSERT_AFTER(&np->n_locks, nflp, nflp2, nfl_link);
3888 nfs_lock_owner_insert_held_lock(nlop, nflp2);
3889 nextnflp = nflp2;
3890 nflp2 = NULL;
3967 if (nflp2)
3968 nfs_file_lock_destroy(nflp2);