Signed-off-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
                *filp = file;
 
                /* Set up the missing parts of the file_lock structure */
+               lock->fl.fl_flags = FL_POSIX;
                lock->fl.fl_file  = file->f_file[mode];
                lock->fl.fl_pid = current->tgid;
                lock->fl.fl_start = (loff_t)lock->lock_start;
 
 
                /* Set up the missing parts of the file_lock structure */
                mode = lock_to_openmode(&lock->fl);
+               lock->fl.fl_flags = FL_POSIX;
                lock->fl.fl_file  = file->f_file[mode];
                lock->fl.fl_pid = current->tgid;
                lock->fl.fl_lmops = &nlmsvc_lock_operations;