• Home
  • Raw
  • Download

Lines Matching refs:file_lock

1299 void nfsd_break_deleg_cb(struct file_lock *fl)  in nfsd_break_deleg_cb()
1348 void nfsd_release_deleg_cb(struct file_lock *fl) in nfsd_release_deleg_cb()
1365 void nfsd_copy_lock_deleg_cb(struct file_lock *new, struct file_lock *fl) in nfsd_copy_lock_deleg_cb()
1379 int nfsd_same_client_deleg_cb(struct file_lock *onlist, struct file_lock *try) in nfsd_same_client_deleg_cb()
1394 int nfsd_change_deleg_cb(struct file_lock **onlist, int arg) in nfsd_change_deleg_cb()
1638 struct file_lock fl, *flp = &fl; in nfs4_open_delegation()
2511 nfs4_transform_lock_offset(struct file_lock *lock) in nfs4_transform_lock_offset()
2525 nfs4_set_lock_denied(struct file_lock *fl, struct nfsd4_lock_denied *deny) in nfs4_set_lock_denied()
2655 struct file_lock file_lock; in nfsd4_lock() local
2656 struct file_lock conflock; in nfsd4_lock()
2737 locks_init_lock(&file_lock); in nfsd4_lock()
2741 file_lock.fl_type = F_RDLCK; in nfsd4_lock()
2746 file_lock.fl_type = F_WRLCK; in nfsd4_lock()
2753 file_lock.fl_owner = (fl_owner_t)lock_sop; in nfsd4_lock()
2754 file_lock.fl_pid = current->tgid; in nfsd4_lock()
2755 file_lock.fl_file = filp; in nfsd4_lock()
2756 file_lock.fl_flags = FL_POSIX; in nfsd4_lock()
2757 file_lock.fl_lmops = &nfsd_posix_mng_ops; in nfsd4_lock()
2759 file_lock.fl_start = lock->lk_offset; in nfsd4_lock()
2760 file_lock.fl_end = last_byte_offset(lock->lk_offset, lock->lk_length); in nfsd4_lock()
2761 nfs4_transform_lock_offset(&file_lock); in nfsd4_lock()
2768 err = vfs_lock_file(filp, cmd, &file_lock, &conflock); in nfsd4_lock()
2806 static int nfsd_test_lock(struct svc_rqst *rqstp, struct svc_fh *fhp, struct file_lock *lock) in nfsd_test_lock()
2827 struct file_lock file_lock; in nfsd4_lockt() local
2852 locks_init_lock(&file_lock); in nfsd4_lockt()
2856 file_lock.fl_type = F_RDLCK; in nfsd4_lockt()
2860 file_lock.fl_type = F_WRLCK; in nfsd4_lockt()
2871 file_lock.fl_owner = (fl_owner_t)lockt->lt_stateowner; in nfsd4_lockt()
2872 file_lock.fl_pid = current->tgid; in nfsd4_lockt()
2873 file_lock.fl_flags = FL_POSIX; in nfsd4_lockt()
2875 file_lock.fl_start = lockt->lt_offset; in nfsd4_lockt()
2876 file_lock.fl_end = last_byte_offset(lockt->lt_offset, lockt->lt_length); in nfsd4_lockt()
2878 nfs4_transform_lock_offset(&file_lock); in nfsd4_lockt()
2881 error = nfsd_test_lock(rqstp, &cstate->current_fh, &file_lock); in nfsd4_lockt()
2886 if (file_lock.fl_type != F_UNLCK) { in nfsd4_lockt()
2888 nfs4_set_lock_denied(&file_lock, &lockt->lt_denied); in nfsd4_lockt()
2901 struct file_lock file_lock; in nfsd4_locku() local
2923 locks_init_lock(&file_lock); in nfsd4_locku()
2924 file_lock.fl_type = F_UNLCK; in nfsd4_locku()
2925 file_lock.fl_owner = (fl_owner_t) locku->lu_stateowner; in nfsd4_locku()
2926 file_lock.fl_pid = current->tgid; in nfsd4_locku()
2927 file_lock.fl_file = filp; in nfsd4_locku()
2928 file_lock.fl_flags = FL_POSIX; in nfsd4_locku()
2929 file_lock.fl_lmops = &nfsd_posix_mng_ops; in nfsd4_locku()
2930 file_lock.fl_start = locku->lu_offset; in nfsd4_locku()
2932 file_lock.fl_end = last_byte_offset(locku->lu_offset, locku->lu_length); in nfsd4_locku()
2933 nfs4_transform_lock_offset(&file_lock); in nfsd4_locku()
2938 err = vfs_lock_file(filp, F_SETLK, &file_lock, NULL); in nfsd4_locku()
2970 struct file_lock **flpp; in check_for_locks()