commit | bce7560d4946dcfc07b0217b1d3862ed60ff7188 | [log] [tgz] |
---|---|---|
author | Jeff Layton <jlayton@redhat.com> | Mon Feb 03 12:13:08 2014 -0500 |
committer | Jeff Layton <jlayton@redhat.com> | Mon Mar 31 08:24:42 2014 -0400 |
tree | 548ef2a83300ee6c4fede7a20be30aee13b9ca5f | |
parent | ef12e72a01f3022c55e5a8e0fa1caebdc7efcfce [diff] |
locks: consolidate checks for compatible filp->f_mode values in setlk handlers Move this check into flock64_to_posix_lock instead of duplicating it in two places. This also fixes a minor wart in the code where we continue referring to the struct flock after converting it to struct file_lock. Acked-by: J. Bruce Fields <bfields@fieldses.org> Signed-off-by: Jeff Layton <jlayton@redhat.com>