Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

lockd: set missing fl_flags field when retrieving args

Signed-off-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>

authored by

Jeff Layton and committed by
Chuck Lever
75c7940d 85a0d0c9

+2
+1
fs/lockd/svc4proc.c
··· 52 52 *filp = file; 53 53 54 54 /* Set up the missing parts of the file_lock structure */ 55 + lock->fl.fl_flags = FL_POSIX; 55 56 lock->fl.fl_file = file->f_file[mode]; 56 57 lock->fl.fl_pid = current->tgid; 57 58 lock->fl.fl_start = (loff_t)lock->lock_start;
+1
fs/lockd/svcproc.c
··· 77 77 78 78 /* Set up the missing parts of the file_lock structure */ 79 79 mode = lock_to_openmode(&lock->fl); 80 + lock->fl.fl_flags = FL_POSIX; 80 81 lock->fl.fl_file = file->f_file[mode]; 81 82 lock->fl.fl_pid = current->tgid; 82 83 lock->fl.fl_lmops = &nlmsvc_lock_operations;