locks: Remove unnecessary IS_POSIX test

Since following change

commit bd61e0a9c8
Author: Jeff Layton <[email protected]>
Date:   Fri Jan 16 15:05:55 2015 -0500

    locks: convert posix locks to file_lock_context

all Posix locks are kept on their a separate list, so the test is
redudant.

Signed-off-by: Daniel Wagner <[email protected]>
Cc: Jeff Layton <[email protected]>
Cc: "J. Bruce Fields" <[email protected]>
Cc: Alexander Viro <[email protected]>
Signed-off-by: Jeff Layton <[email protected]>
This commit is contained in:
Daniel Wagner 2015-04-03 09:04:02 -04:00 • committed by Jeff Layton
commit 9cd29044bd

View file

@ -964,8 +964,6 @@ static int __posix_lock_file(struct inode *inode, struct file_lock *request, str
*/
if (request->fl_type != F_UNLCK) {
list_for_each_entry(fl, &ctx->flc_posix, fl_list) {
if (!IS_POSIX(fl))
continue;
if (!posix_locks_conflict(request, fl))
continue;
if (conflock)