_to_posix_lock(filp, file_lock, &flock);  if (error)   goto out;   error = check_fmode_for_setlk(file_lock);  if (error)   goto out;   /*   * If the cmd is requesting file-private locks, then set the   * FL_OFDLCK flag and override the owner.   */  switch (cmd) {  case F_OFD_SETLK:   error = -EINVAL;   if (flock.l_pid != 0)    goto out;    cmd = F_SETLK00;   file_lock->fl_flags |= FL_OFDLCK;   file_lock->fl_owner = filp;   break;  case F_OFD_SETLKW:   error = -EINVAL;   if (flock.l_pid != 0)    goto out;    cmd = F_SETLKW00;   file_lock->fl_flags |= FL_OFDLCK;   file_lock->fl_owner = filp;   /* Fallthrough */  case F_SETLKW