| /fs/ |
| A D | fcntl.c | 451 struct flock flock; in do_fcntl() local 485 if (copy_from_user(&flock, argp, sizeof(flock))) in do_fcntl() 488 if (!err && copy_to_user(argp, &flock, sizeof(flock))) in do_fcntl() 499 if (copy_from_user(&flock, argp, sizeof(flock))) in do_fcntl() 602 struct flock64 flock; in SYSCALL_DEFINE3() local 621 if (copy_from_user(&flock, argp, sizeof(flock))) in SYSCALL_DEFINE3() 624 if (!err && copy_to_user(argp, &flock, sizeof(flock))) in SYSCALL_DEFINE3() 632 if (copy_from_user(&flock, argp, sizeof(flock))) in SYSCALL_DEFINE3() 723 static int fixup_compat_flock(struct flock *flock) in fixup_compat_flock() argument 728 flock->l_len = COMPAT_OFF_T_MAX; in fixup_compat_flock() [all …]
|
| A D | locks.c | 2237 static int posix_lock_to_flock(struct flock *flock, struct file_lock *fl) in posix_lock_to_flock() argument 2253 flock->l_whence = 0; in posix_lock_to_flock() 2265 flock->l_whence = 0; in posix_lock_to_flock64() 2273 int fcntl_getlk(struct file *filp, unsigned int cmd, struct flock *flock) in fcntl_getlk() argument 2292 if (flock->l_pid != 0) in fcntl_getlk() 2402 struct flock *flock) in fcntl_setlk() argument 2427 if (flock->l_pid != 0) in fcntl_setlk() 2436 if (flock->l_pid != 0) in fcntl_setlk() 2501 if (flock->l_pid != 0) in fcntl_getlk64() 2525 struct flock64 *flock) in fcntl_setlk64() argument [all …]
|
| A D | Kconfig | 120 for filesystems like NFS and for the flock() system
|
| /fs/9p/ |
| A D | vfs_file.c | 120 struct p9_flock flock; in v9fs_file_do_lock() local 136 memset(&flock, 0, sizeof(flock)); in v9fs_file_do_lock() 140 flock.type = P9_LOCK_TYPE_RDLCK; in v9fs_file_do_lock() 143 flock.type = P9_LOCK_TYPE_WRLCK; in v9fs_file_do_lock() 146 flock.type = P9_LOCK_TYPE_UNLCK; in v9fs_file_do_lock() 149 flock.start = fl->fl_start; in v9fs_file_do_lock() 151 flock.length = 0; in v9fs_file_do_lock() 154 flock.proc_id = fl->c.flc_pid; in v9fs_file_do_lock() 182 kfree(flock.client_id); in v9fs_file_do_lock() 218 kfree(flock.client_id); in v9fs_file_do_lock() [all …]
|
| /fs/smb/client/ |
| A D | file.c | 1624 flock->c.flc_type = F_UNLCK; in cifs_lock_test() 1706 posix_test_lock(file, flock); in cifs_posix_lock_test() 1843 struct file_lock *flock; in cifs_push_posix_locks() local 1976 if (flock->c.flc_flags & in cifs_read_flock() 1983 if (lock_is_write(flock)) { in cifs_read_flock() 2033 flock->fl_start, length, flock, in cifs_getlk() 2039 rc = cifs_lock_test(cfile, flock->fl_start, length, type, flock); in cifs_getlk() 2049 flock->c.flc_type = F_UNLCK; in cifs_getlk() 2312 if ((flock->c.flc_flags & FL_POSIX) || (flock->c.flc_flags & FL_FLOCK)) { in cifs_setlk() 2393 flock->c.flc_flags, flock->c.flc_type, in cifs_lock() [all …]
|
| A D | smb2file.c | 257 smb2_unlock_range(struct cifsFileInfo *cfile, struct file_lock *flock, in smb2_unlock_range() argument 266 __u64 length = 1 + flock->fl_end - flock->fl_start; in smb2_unlock_range() 288 if (flock->fl_start > li->offset || in smb2_unlock_range() 289 (flock->fl_start + length) < in smb2_unlock_range() 297 if (!(flock->c.flc_flags & (FL_FLOCK | FL_OFDLCK))) in smb2_unlock_range()
|
| A D | smb2proto.h | 126 struct file_lock *flock, const unsigned int xid);
|
| A D | cifsfs.c | 1525 .flock = cifs_flock, 1545 .flock = cifs_flock, 1565 .flock = cifs_flock,
|
| A D | cifsproto.h | 210 struct file_lock *flock, const unsigned int xid);
|
| /fs/smb/server/ |
| A D | vfs.c | 322 struct file_lock *flock; in check_lock_range() local 330 for_each_file_lock(flock, &ctx->flc_posix) { in check_lock_range() 332 if (flock->fl_end >= start && end >= flock->fl_start) { in check_lock_range() 333 if (lock_is_read(flock)) { in check_lock_range() 339 } else if (lock_is_write(flock)) { in check_lock_range() 341 if (flock->c.flc_file != filp) { in check_lock_range() 1848 void ksmbd_vfs_posix_lock_wait(struct file_lock *flock) in ksmbd_vfs_posix_lock_wait() argument 1850 wait_event(flock->c.flc_wait, !flock->c.flc_blocker); in ksmbd_vfs_posix_lock_wait() 1853 void ksmbd_vfs_posix_lock_unblock(struct file_lock *flock) in ksmbd_vfs_posix_lock_unblock() argument 1855 locks_delete_block(flock); in ksmbd_vfs_posix_lock_unblock()
|
| A D | vfs.h | 145 void ksmbd_vfs_posix_lock_wait(struct file_lock *flock); 146 void ksmbd_vfs_posix_lock_unblock(struct file_lock *flock);
|
| A D | smb2pdu.c | 7300 lock->fl = flock; in smb2_lock_init() 7319 locks_wake_up(flock); in smb2_remove_blocked_lock() 7378 if (!flock) in smb2_lock() 7388 locks_free_lock(flock); in smb2_lock() 7401 flock->fl_end = flock->fl_start + lock_length; in smb2_lock() 7403 if (flock->fl_end < flock->fl_start) { in smb2_lock() 7406 flock->fl_end, flock->fl_start); in smb2_lock() 7408 locks_free_lock(flock); in smb2_lock() 7429 locks_free_lock(flock); in smb2_lock() 7536 flock = smb_lock->fl; in smb2_lock() [all …]
|
| /fs/afs/ |
| A D | Makefile | 19 flock.o \
|
| A D | file.c | 43 .flock = afs_flock,
|
| /fs/fuse/ |
| A D | file.c | 346 if (ra && ff->flock) { in fuse_file_release() 2392 int flock, struct fuse_lk_in *inarg) in fuse_lk_fill() argument 2405 if (flock) in fuse_lk_fill() 2434 static int fuse_setlk(struct file *file, struct file_lock *fl, int flock) in fuse_setlk() argument 2450 fuse_lk_fill(&args, file, fl, opcode, pid_nr, flock, &inarg); in fuse_setlk() 2495 ff->flock = true; in fuse_file_flock() 3078 .flock = fuse_file_flock,
|
| A D | fuse_i.h | 290 bool flock:1; member
|
| /fs/nfs/ |
| A D | nfs4file.c | 444 .flock = nfs_flock,
|
| A D | file.c | 913 .flock = nfs_flock,
|
| /fs/ocfs2/ |
| A D | file.c | 2814 .flock = ocfs2_flock, 2835 .flock = ocfs2_flock, 2863 .flock = ocfs2_flock, 2881 .flock = ocfs2_flock,
|
| /fs/gfs2/ |
| A D | file.c | 1586 .flock = gfs2_flock, 1602 .flock = gfs2_flock,
|
| /fs/ceph/ |
| A D | dir.c | 2220 .flock = ceph_flock,
|
| A D | file.c | 3177 .flock = ceph_flock,
|