Home
last modified time | relevance | path

Searched refs:flock (Results 1 – 21 of 21) sorted by relevance

/fs/
Dlocks.c325 struct flock *l) in flock_to_posix_lock()
1192 struct file_lock *new_fl, *flock; in __break_lease() local
1206 flock = inode->i_flock; in __break_lease()
1207 if ((flock == NULL) || !IS_LEASE(flock)) in __break_lease()
1210 if (!locks_conflict(flock, new_fl)) in __break_lease()
1213 for (fl = flock; fl && IS_LEASE(fl); fl = fl->fl_next) in __break_lease()
1224 for (fl = flock; fl && IS_LEASE(fl); fl = fl->fl_next) { in __break_lease()
1231 if (lease_breaking(flock)) in __break_lease()
1245 break_time = flock->fl_break_time; in __break_lease()
1251 locks_insert_block(flock, new_fl); in __break_lease()
[all …]
Dcompat.c350 static int get_compat_flock(struct flock *kfl, struct compat_flock __user *ufl) in get_compat_flock()
362 static int put_compat_flock(struct flock *kfl, struct compat_flock __user *ufl) in put_compat_flock()
375 static int get_compat_flock64(struct flock *kfl, struct compat_flock64 __user *ufl) in get_compat_flock64()
389 static int put_compat_flock64(struct flock *kfl, struct compat_flock64 __user *ufl) in put_compat_flock64()
406 struct flock f; in compat_sys_fcntl64()
Dfcntl.c277 err = fcntl_getlk(filp, (struct flock __user *) arg); in do_fcntl()
281 err = fcntl_setlk(fd, filp, cmd, (struct flock __user *) arg); in do_fcntl()
Dbad_inode.c170 .flock = bad_file_flock,
DKconfig61 for filesystems like NFS and for the flock() system
/fs/cifs/
Dfile.c860 __u8 type, struct file_lock *flock) in cifs_lock_test() argument
873 flock->fl_start = conf_lock->offset; in cifs_lock_test()
874 flock->fl_end = conf_lock->offset + conf_lock->length - 1; in cifs_lock_test()
875 flock->fl_pid = conf_lock->pid; in cifs_lock_test()
877 flock->fl_type = F_RDLCK; in cifs_lock_test()
879 flock->fl_type = F_WRLCK; in cifs_lock_test()
883 flock->fl_type = F_UNLCK; in cifs_lock_test()
953 cifs_posix_lock_test(struct file *file, struct file_lock *flock) in cifs_posix_lock_test() argument
957 unsigned char saved_type = flock->fl_type; in cifs_posix_lock_test()
959 if ((flock->fl_flags & FL_POSIX) == 0) in cifs_posix_lock_test()
[all …]
Dsmb2file.c116 smb2_unlock_range(struct cifsFileInfo *cfile, struct file_lock *flock, in smb2_unlock_range() argument
125 __u64 length = 1 + flock->fl_end - flock->fl_start; in smb2_unlock_range()
147 if (flock->fl_start > li->offset || in smb2_unlock_range()
148 (flock->fl_start + length) < in smb2_unlock_range()
Dsmb2proto.h94 struct file_lock *flock, const unsigned int xid);
Dcifsproto.h129 struct file_lock *flock, const unsigned int xid);
/fs/9p/
Dvfs_file.c150 struct p9_flock flock; in v9fs_file_do_lock() local
167 memset(&flock, 0, sizeof(flock)); in v9fs_file_do_lock()
171 flock.type = P9_LOCK_TYPE_RDLCK; in v9fs_file_do_lock()
174 flock.type = P9_LOCK_TYPE_WRLCK; in v9fs_file_do_lock()
177 flock.type = P9_LOCK_TYPE_UNLCK; in v9fs_file_do_lock()
180 flock.start = fl->fl_start; in v9fs_file_do_lock()
182 flock.length = 0; in v9fs_file_do_lock()
184 flock.length = fl->fl_end - fl->fl_start + 1; in v9fs_file_do_lock()
185 flock.proc_id = fl->fl_pid; in v9fs_file_do_lock()
186 flock.client_id = utsname()->nodename; in v9fs_file_do_lock()
[all …]
/fs/afs/
DMakefile14 flock.o \
Dfile.c42 .flock = afs_flock,
/fs/nfs/
Dnfs4file.c133 .flock = nfs_flock,
Dfile.c934 .flock = nfs_flock,
/fs/fuse/
Dfile.c249 if (ff->flock) { in fuse_release_common()
1675 int flock) in fuse_lk_fill() argument
1688 if (flock) in fuse_lk_fill()
1722 static int fuse_setlk(struct file *file, struct file_lock *fl, int flock) in fuse_setlk() argument
1744 fuse_lk_fill(req, file, fl, opcode, pid, flock); in fuse_setlk()
1790 ff->flock = true; in fuse_file_flock()
2538 .flock = fuse_file_flock,
2556 .flock = fuse_file_flock,
Dfuse_i.h155 bool flock:1; member
/fs/gfs2/
Dfile.c1043 .flock = gfs2_flock,
1057 .flock = gfs2_flock,
/fs/ocfs2/
Dfile.c2706 .flock = ocfs2_flock,
2724 .flock = ocfs2_flock,
2753 .flock = ocfs2_flock,
2770 .flock = ocfs2_flock,
/fs/ceph/
Dmds_client.c47 bool flock; member
2458 if (recon_state->flock) { in encode_caps_cb()
2479 if (recon_state->flock) { in encode_caps_cb()
2586 recon_state.flock = session->s_con.peer_features & CEPH_FEATURE_FLOCK; in send_mds_reconnect()
2611 if (recon_state.flock) in send_mds_reconnect()
Dcaps.c2806 void *flock; in ceph_handle_caps() local
2835 flock = p; in ceph_handle_caps()
2837 flock = NULL; in ceph_handle_caps()
Dfile.c896 .flock = ceph_flock,