From: Jeff Layton Date: Mon, 3 Feb 2014 17:13:08 +0000 (-0500) Subject: locks: consolidate checks for compatible filp->f_mode values in setlk handlers X-Git-Tag: v3.15-rc1~98^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bce7560d4946;p=pandora-kernel.git 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 Signed-off-by: Jeff Layton --- Reading git-diff-tree failed