Commit 9cd29044 authored by Daniel Wagner's avatar Daniel Wagner Committed by Jeff Layton

locks: Remove unnecessary IS_POSIX test

Since following change

commit bd61e0a9
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
Signed-off-by: default avatarDaniel Wagner <>
Cc: Jeff Layton <>
Cc: "J. Bruce Fields" <>
Cc: Alexander Viro <>
Signed-off-by: default avatarJeff Layton <>
parent 8f778bbc
......@@ -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))
if (!posix_locks_conflict(request, fl))
if (conflock)
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment