Home
last modified time | relevance | path

Searched refs:F_UNLCK (Results 1 – 32 of 32) sorted by relevance

/linux-4.1.27/fs/9p/
Dvfs_file.c139 if (__mandatory_lock(inode) && fl->fl_type != F_UNLCK) in v9fs_file_lock()
142 if ((IS_SETLK(cmd) || IS_SETLKW(cmd)) && fl->fl_type != F_UNLCK) { in v9fs_file_lock()
178 case F_UNLCK: in v9fs_file_do_lock()
231 if (res < 0 && fl->fl_type != F_UNLCK) { in v9fs_file_do_lock()
233 fl->fl_type = F_UNLCK; in v9fs_file_do_lock()
255 if (fl->fl_type != F_UNLCK) in v9fs_file_getlock()
281 fl->fl_type = F_UNLCK; in v9fs_file_getlock()
313 if (__mandatory_lock(inode) && fl->fl_type != F_UNLCK) in v9fs_file_lock_dotl()
316 if ((IS_SETLK(cmd) || IS_SETLKW(cmd)) && fl->fl_type != F_UNLCK) { in v9fs_file_lock_dotl()
349 if (__mandatory_lock(inode) && fl->fl_type != F_UNLCK) in v9fs_file_flock_dotl()
[all …]
/linux-4.1.27/fs/
Dlocks.c151 return F_UNLCK; in target_leasetype()
210 if (likely(inode->i_flctx) || type == F_UNLCK) in locks_get_lock_context()
363 return F_UNLCK; in flock_translate_cmd()
397 case F_UNLCK: in assign_type()
767 fl->fl_type = F_UNLCK; in posix_test_lock()
780 fl->fl_type = F_UNLCK; in posix_test_lock()
876 if (request->fl_type != F_UNLCK) in flock_lock_inode()
881 if (!(request->fl_flags & FL_ACCESS) && (request->fl_type != F_UNLCK)) { in flock_lock_inode()
901 if (request->fl_type == F_UNLCK) { in flock_lock_inode()
947 return (request->fl_type == F_UNLCK) ? 0 : -ENOMEM; in __posix_lock_file()
[all …]
/linux-4.1.27/fs/ocfs2/
Dlocks.c70 &(struct file_lock){.fl_type = F_UNLCK}); in ocfs2_do_flock()
124 if (fl->fl_type == F_UNLCK) in ocfs2_flock()
137 if (__mandatory_lock(inode) && fl->fl_type != F_UNLCK) in ocfs2_lock()
Dstack_user.c771 fl->fl_type = F_UNLCK; in user_plock()
776 else if (fl->fl_type == F_UNLCK) in user_plock()
/linux-4.1.27/fs/ceph/
Dlocks.c88 fl->fl_type = F_UNLCK; in ceph_lock_message()
167 if (__mandatory_lock(file->f_mapping->host) && fl->fl_type != F_UNLCK) in ceph_lock()
213 if (__mandatory_lock(file->f_mapping->host) && fl->fl_type != F_UNLCK) in ceph_flock()
372 case F_UNLCK: in lock_to_ceph_filelock()
/linux-4.1.27/fs/afs/
Dflock.c484 fl->fl_type = F_UNLCK; in afs_do_getlk()
491 if (fl->fl_type == F_UNLCK) { in afs_do_getlk()
526 if (__mandatory_lock(&vnode->vfs_inode) && fl->fl_type != F_UNLCK) in afs_lock()
531 if (fl->fl_type == F_UNLCK) in afs_lock()
558 if (fl->fl_type == F_UNLCK) in afs_flock()
/linux-4.1.27/arch/parisc/include/uapi/asm/
Dfcntl.h37 #define F_UNLCK 03 macro
/linux-4.1.27/arch/alpha/include/uapi/asm/
Dfcntl.h49 #define F_UNLCK 8 macro
/linux-4.1.27/arch/sparc/include/uapi/asm/
Dfcntl.h49 #define F_UNLCK 3 macro
/linux-4.1.27/fs/nfs/
Dfile.c739 if (fl->fl_type != F_UNLCK) { in do_getlk()
755 fl->fl_type = F_UNLCK; in do_getlk()
875 if (__mandatory_lock(inode) && fl->fl_type != F_UNLCK) in nfs_lock()
889 else if (fl->fl_type == F_UNLCK) in nfs_lock()
925 if (fl->fl_type == F_UNLCK) in nfs_flock()
Dnfs4trace.h505 { F_UNLCK, "UNLCK" })
Dnfs4proc.c5345 request->fl_type = F_UNLCK; in _nfs4_proc_getlk()
5512 fl->fl_type = F_UNLCK; in nfs4_do_unlck()
5991 if (request->fl_type == F_UNLCK) { in nfs4_proc_lock()
/linux-4.1.27/fs/gfs2/
Dfile.c993 if (__mandatory_lock(&ip->i_inode) && fl->fl_type != F_UNLCK) in gfs2_lock()
999 fl->fl_type = F_UNLCK; in gfs2_lock()
1002 if (fl->fl_type == F_UNLCK) in gfs2_lock()
1008 else if (fl->fl_type == F_UNLCK) in gfs2_lock()
1035 &(struct file_lock){.fl_type = F_UNLCK}); in do_flock()
1098 if (fl->fl_type == F_UNLCK) { in gfs2_flock()
/linux-4.1.27/include/uapi/asm-generic/
Dfcntl.h167 #define F_UNLCK 2 macro
/linux-4.1.27/include/trace/events/
Dfilelock.h35 { F_UNLCK, "F_UNLCK" })
/linux-4.1.27/fs/lockd/
Dclntproc.c174 if (fl->fl_type != F_UNLCK) { in nlmclnt_proc()
426 fl->fl_type = F_UNLCK; in nlmclnt_test()
605 fl->fl_type = F_UNLCK; in nlmclnt_lock()
Dsvcsubs.c187 lock.fl_type = F_UNLCK; in nlm_traverse_locks()
Dsvclock.c534 if (lock->fl.fl_type == F_UNLCK) { in nlmsvc_testlock()
577 lock->fl.fl_type = F_UNLCK; in nlmsvc_unlock()
Dxdr4.c248 argp->lock.fl.fl_type = F_UNLCK; in nlm4svc_decode_unlockargs()
Dxdr.c251 argp->lock.fl.fl_type = F_UNLCK; in nlmsvc_decode_unlockargs()
/linux-4.1.27/include/linux/lockd/
Dlockd.h358 &&(fl1->fl_type == fl2->fl_type || fl2->fl_type == F_UNLCK); in nlm_compare_locks()
/linux-4.1.27/fs/nfsd/
Dnfs4layouts.c147 vfs_setlease(ls->ls_file, F_UNLCK, NULL, (void **)&ls); in nfsd4_free_layout_stateid()
678 BUG_ON(!(arg & F_UNLCK)); in nfsd4_layout_lm_change()
Dnfs4state.c758 vfs_setlease(filp, F_UNLCK, NULL, (void **)&fp); in nfs4_put_deleg_lease()
3644 if (arg & F_UNLCK) in nfsd_change_deleg_cb()
5703 if (file_lock->fl_type != F_UNLCK) { in nfsd4_lockt()
5750 file_lock->fl_type = F_UNLCK; in nfsd4_locku()
/linux-4.1.27/fs/dlm/
Dplock.c363 fl->fl_type = F_UNLCK; in dlm_posix_get()
/linux-4.1.27/drivers/staging/lustre/lustre/llite/
Dfile.c2428 case F_UNLCK: in ll_file_ioctl()
2725 case F_UNLCK: in ll_file_flock()
2785 (rc == 0 || file_lock->fl_type == F_UNLCK)) in ll_file_flock()
2788 (rc == 0 || file_lock->fl_type == F_UNLCK) && in ll_file_flock()
2792 if (rc2 && file_lock->fl_type != F_UNLCK) { in ll_file_flock()
/linux-4.1.27/drivers/staging/lustre/lustre/ldlm/
Dldlm_flock.c695 getlk->fl_type = F_UNLCK; in ldlm_flock_completion_ast()
/linux-4.1.27/fs/cifs/
Dfile.c920 flock->fl_type = F_UNLCK; in cifs_lock_test()
1002 if (flock->fl_type == F_UNLCK && !cinode->can_cache_brlcks) { in cifs_posix_lock_test()
1265 } else if (flock->fl_type == F_UNLCK) { in cifs_read_flock()
1324 flock->fl_type = F_UNLCK; in cifs_getlk()
Dcifsfs.c831 if (arg == F_UNLCK || in cifs_setlease()
Dcifssmb.c2496 pLockData->fl_type = F_UNLCK; in CIFSSMBPosixLock()
/linux-4.1.27/tools/hv/
Dhv_kvp_daemon.c137 struct flock fl = {F_UNLCK, SEEK_SET, 0, 0, 0}; in kvp_release_lock()
/linux-4.1.27/fs/fuse/
Dfile.c2075 case F_UNLCK: in convert_fuse_file_lock()
2147 pid_t pid = fl->fl_type != F_UNLCK ? current->tgid : 0; in fuse_setlk()
/linux-4.1.27/include/linux/
Dfs.h1087 return F_UNLCK; in fcntl_getlease()