• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/fs/nfsd/

Lines Matching defs:file_lock

262 /* Remove the associated file_lock first, then remove the delegation.
263 * lease_modify() is called to remove the FS_LEASE file_lock from
2087 * by the lease (file_lock)
2094 void nfsd_break_deleg_cb(struct file_lock *fl)
2128 * The file_lock is being reapd.
2133 void nfsd_release_deleg_cb(struct file_lock *fl)
2145 * Set the delegation file_lock back pointer.
2150 void nfsd_copy_lock_deleg_cb(struct file_lock *new, struct file_lock *fl)
2164 int nfsd_same_client_deleg_cb(struct file_lock *onlist, struct file_lock *try)
2179 int nfsd_change_deleg_cb(struct file_lock **onlist, int arg)
2449 struct file_lock fl, *flp = &fl;
3376 nfs4_transform_lock_offset(struct file_lock *lock)
3390 nfs4_set_lock_denied(struct file_lock *fl, struct nfsd4_lock_denied *deny)
3517 struct file_lock file_lock;
3518 struct file_lock conflock;
3596 locks_init_lock(&file_lock);
3604 file_lock.fl_type = F_RDLCK;
3613 file_lock.fl_type = F_WRLCK;
3624 file_lock.fl_owner = (fl_owner_t)lock_sop;
3625 file_lock.fl_pid = current->tgid;
3626 file_lock.fl_file = filp;
3627 file_lock.fl_flags = FL_POSIX;
3628 file_lock.fl_lmops = &nfsd_posix_mng_ops;
3630 file_lock.fl_start = lock->lk_offset;
3631 file_lock.fl_end = last_byte_offset(lock->lk_offset, lock->lk_length);
3632 nfs4_transform_lock_offset(&file_lock);
3639 err = vfs_lock_file(filp, cmd, &file_lock, &conflock);
3677 static int nfsd_test_lock(struct svc_rqst *rqstp, struct svc_fh *fhp, struct file_lock *lock)
3698 struct file_lock file_lock;
3723 locks_init_lock(&file_lock);
3727 file_lock.fl_type = F_RDLCK;
3731 file_lock.fl_type = F_WRLCK;
3742 file_lock.fl_owner = (fl_owner_t)lockt->lt_stateowner;
3743 file_lock.fl_pid = current->tgid;
3744 file_lock.fl_flags = FL_POSIX;
3746 file_lock.fl_start = lockt->lt_offset;
3747 file_lock.fl_end = last_byte_offset(lockt->lt_offset, lockt->lt_length);
3749 nfs4_transform_lock_offset(&file_lock);
3752 error = nfsd_test_lock(rqstp, &cstate->current_fh, &file_lock);
3757 if (file_lock.fl_type != F_UNLCK) {
3759 nfs4_set_lock_denied(&file_lock, &lockt->lt_denied);
3772 struct file_lock file_lock;
3798 locks_init_lock(&file_lock);
3799 file_lock.fl_type = F_UNLCK;
3800 file_lock.fl_owner = (fl_owner_t) locku->lu_stateowner;
3801 file_lock.fl_pid = current->tgid;
3802 file_lock.fl_file = filp;
3803 file_lock.fl_flags = FL_POSIX;
3804 file_lock.fl_lmops = &nfsd_posix_mng_ops;
3805 file_lock.fl_start = locku->lu_offset;
3807 file_lock.fl_end = last_byte_offset(locku->lu_offset, locku->lu_length);
3808 nfs4_transform_lock_offset(&file_lock);
3813 err = vfs_lock_file(filp, F_SETLK, &file_lock, NULL);
3845 struct file_lock **flpp;