• Home
  • Raw
  • Download

Lines Matching refs:fl

2308 				  struct file_lock *fl)  in convert_fuse_file_lock()  argument
2320 fl->fl_start = ffl->start; in convert_fuse_file_lock()
2321 fl->fl_end = ffl->end; in convert_fuse_file_lock()
2328 fl->fl_pid = pid_nr_ns(find_pid_ns(ffl->pid, fc->pid_ns), &init_pid_ns); in convert_fuse_file_lock()
2335 fl->fl_type = ffl->type; in convert_fuse_file_lock()
2340 const struct file_lock *fl, int opcode, pid_t pid, in fuse_lk_fill() argument
2349 inarg->owner = fuse_lock_owner_id(fc, fl->fl_owner); in fuse_lk_fill()
2350 inarg->lk.start = fl->fl_start; in fuse_lk_fill()
2351 inarg->lk.end = fl->fl_end; in fuse_lk_fill()
2352 inarg->lk.type = fl->fl_type; in fuse_lk_fill()
2363 static int fuse_getlk(struct file *file, struct file_lock *fl) in fuse_getlk() argument
2372 fuse_lk_fill(&args, file, fl, FUSE_GETLK, 0, 0, &inarg); in fuse_getlk()
2378 err = convert_fuse_file_lock(fc, &outarg.lk, fl); in fuse_getlk()
2383 static int fuse_setlk(struct file *file, struct file_lock *fl, int flock) in fuse_setlk() argument
2389 int opcode = (fl->fl_flags & FL_SLEEP) ? FUSE_SETLKW : FUSE_SETLK; in fuse_setlk()
2390 struct pid *pid = fl->fl_type != F_UNLCK ? task_tgid(current) : NULL; in fuse_setlk()
2394 if (fl->fl_lmops && fl->fl_lmops->lm_grant) { in fuse_setlk()
2400 if ((fl->fl_flags & FL_CLOSE_POSIX) == FL_CLOSE_POSIX) in fuse_setlk()
2403 fuse_lk_fill(&args, file, fl, opcode, pid_nr, flock, &inarg); in fuse_setlk()
2413 static int fuse_file_lock(struct file *file, int cmd, struct file_lock *fl) in fuse_file_lock() argument
2423 posix_test_lock(file, fl); in fuse_file_lock()
2426 err = fuse_getlk(file, fl); in fuse_file_lock()
2429 err = posix_lock_file(file, fl, NULL); in fuse_file_lock()
2431 err = fuse_setlk(file, fl, 0); in fuse_file_lock()
2436 static int fuse_file_flock(struct file *file, int cmd, struct file_lock *fl) in fuse_file_flock() argument
2443 err = locks_lock_file_wait(file, fl); in fuse_file_flock()
2449 err = fuse_setlk(file, fl, 1); in fuse_file_flock()