From 9cd29044bd7be430f0d38620a6b0b6a0c017c6c9 Mon Sep 17 00:00:00 2001 From: Daniel Wagner Date: Fri, 3 Apr 2015 09:04:02 -0400 Subject: locks: Remove unnecessary IS_POSIX test Since following change commit bd61e0a9c852de2d705b6f1bb2cc54c5774db570 Author: Jeff Layton 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 Cc: Jeff Layton Cc: "J. Bruce Fields" Cc: Alexander Viro Signed-off-by: Jeff Layton --- fs/locks.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'fs/locks.c') diff --git a/fs/locks.c b/fs/locks.c index 40bc384728c0..4517b8bfca11 100644 --- a/fs/locks.c +++ b/fs/locks.c @@ -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) -- cgit v1.2.3