• Home
  • Raw
  • Download

Lines Matching refs:fl

657 do_getlk(struct file *filp, int cmd, struct file_lock *fl, int is_local)  in do_getlk()  argument
661 unsigned int saved_type = fl->fl_type; in do_getlk()
664 posix_test_lock(filp, fl); in do_getlk()
665 if (fl->fl_type != F_UNLCK) { in do_getlk()
669 fl->fl_type = saved_type; in do_getlk()
677 status = NFS_PROTO(inode)->lock(filp, cmd, fl); in do_getlk()
681 fl->fl_type = F_UNLCK; in do_getlk()
686 do_unlk(struct file *filp, int cmd, struct file_lock *fl, int is_local) in do_unlk() argument
706 if (status < 0 && !(fl->fl_flags & FL_CLOSE)) in do_unlk()
715 status = NFS_PROTO(inode)->lock(filp, cmd, fl); in do_unlk()
717 status = locks_lock_file_wait(filp, fl); in do_unlk()
722 do_setlk(struct file *filp, int cmd, struct file_lock *fl, int is_local) in do_setlk() argument
740 status = NFS_PROTO(inode)->lock(filp, cmd, fl); in do_setlk()
742 status = locks_lock_file_wait(filp, fl); in do_setlk()
766 int nfs_lock(struct file *filp, int cmd, struct file_lock *fl) in nfs_lock() argument
773 filp, fl->fl_type, fl->fl_flags, in nfs_lock()
774 (long long)fl->fl_start, (long long)fl->fl_end); in nfs_lock()
779 if (__mandatory_lock(inode) && fl->fl_type != F_UNLCK) in nfs_lock()
786 ret = NFS_PROTO(inode)->lock_check_bounds(fl); in nfs_lock()
792 ret = do_getlk(filp, cmd, fl, is_local); in nfs_lock()
793 else if (fl->fl_type == F_UNLCK) in nfs_lock()
794 ret = do_unlk(filp, cmd, fl, is_local); in nfs_lock()
796 ret = do_setlk(filp, cmd, fl, is_local); in nfs_lock()
805 int nfs_flock(struct file *filp, int cmd, struct file_lock *fl) in nfs_flock() argument
811 filp, fl->fl_type, fl->fl_flags); in nfs_flock()
813 if (!(fl->fl_flags & FL_FLOCK)) in nfs_flock()
822 if (fl->fl_type & LOCK_MAND) in nfs_flock()
829 if (fl->fl_type == F_UNLCK) in nfs_flock()
830 return do_unlk(filp, cmd, fl, is_local); in nfs_flock()
831 return do_setlk(filp, cmd, fl, is_local); in nfs_flock()