[PATCH v4 09/13] locks: don't reference original flock struct in F_GETLK handlers

2013-12-19 Thread Jeff Layton
The locks code currently sanity checks the type values in the flock struct before doing the flock->file_lock conversion. That will be problematic when new l_type values are introduced in a later patch. Instead, do the flock_to_posix_lock conversion first, and then sanity check the values in the

[PATCH v4 09/13] locks: don't reference original flock struct in F_GETLK handlers

2013-12-19 Thread Jeff Layton
The locks code currently sanity checks the type values in the flock struct before doing the flock-file_lock conversion. That will be problematic when new l_type values are introduced in a later patch. Instead, do the flock_to_posix_lock conversion first, and then sanity check the values in the