• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/fs/nfsd/

Lines Matching refs:file_lock

239 /* Remove the associated file_lock first, then remove the delegation.
240 * lease_modify() is called to remove the FS_LEASE file_lock from
1319 * by the lease (file_lock)
1326 void nfsd_break_deleg_cb(struct file_lock *fl)
1363 * The file_lock is being reapd.
1368 void nfsd_release_deleg_cb(struct file_lock *fl)
1380 * Set the delegation file_lock back pointer.
1385 void nfsd_copy_lock_deleg_cb(struct file_lock *new, struct file_lock *fl)
1399 int nfsd_same_client_deleg_cb(struct file_lock *onlist, struct file_lock *try)
1414 int nfsd_change_deleg_cb(struct file_lock **onlist, int arg)
1654 struct file_lock fl, *flp = &fl;
2494 nfs4_transform_lock_offset(struct file_lock *lock)
2508 nfs4_set_lock_denied(struct file_lock *fl, struct nfsd4_lock_denied *deny)
2638 struct file_lock file_lock;
2639 struct file_lock conflock;
2717 locks_init_lock(&file_lock);
2721 file_lock.fl_type = F_RDLCK;
2726 file_lock.fl_type = F_WRLCK;
2733 file_lock.fl_owner = (fl_owner_t)lock_sop;
2734 file_lock.fl_pid = current->tgid;
2735 file_lock.fl_file = filp;
2736 file_lock.fl_flags = FL_POSIX;
2737 file_lock.fl_lmops = &nfsd_posix_mng_ops;
2739 file_lock.fl_start = lock->lk_offset;
2742 file_lock.fl_end = ~(u64)0;
2744 file_lock.fl_end = lock->lk_offset + lock->lk_length - 1;
2745 nfs4_transform_lock_offset(&file_lock);
2753 err = vfs_lock_file(filp, cmd, &file_lock, &conflock);
2794 struct file_lock file_lock;
2819 locks_init_lock(&file_lock);
2823 file_lock.fl_type = F_RDLCK;
2827 file_lock.fl_type = F_WRLCK;
2838 file_lock.fl_owner = (fl_owner_t)lockt->lt_stateowner;
2839 file_lock.fl_pid = current->tgid;
2840 file_lock.fl_flags = FL_POSIX;
2841 file_lock.fl_lmops = &nfsd_posix_mng_ops;
2843 file_lock.fl_start = lockt->lt_offset;
2845 file_lock.fl_end = ~(u64)0;
2847 file_lock.fl_end = lockt->lt_offset + lockt->lt_length - 1;
2849 nfs4_transform_lock_offset(&file_lock);
2860 error = vfs_test_lock(&file, &file_lock);
2865 if (file_lock.fl_type != F_UNLCK) {
2867 nfs4_set_lock_denied(&file_lock, &lockt->lt_denied);
2880 struct file_lock file_lock;
2902 locks_init_lock(&file_lock);
2903 file_lock.fl_type = F_UNLCK;
2904 file_lock.fl_owner = (fl_owner_t) locku->lu_stateowner;
2905 file_lock.fl_pid = current->tgid;
2906 file_lock.fl_file = filp;
2907 file_lock.fl_flags = FL_POSIX;
2908 file_lock.fl_lmops = &nfsd_posix_mng_ops;
2909 file_lock.fl_start = locku->lu_offset;
2912 file_lock.fl_end = ~(u64)0;
2914 file_lock.fl_end = locku->lu_offset + locku->lu_length - 1;
2915 nfs4_transform_lock_offset(&file_lock);
2920 err = vfs_lock_file(filp, F_SETLK, &file_lock, NULL);
2952 struct file_lock **flpp;