diff options
author | Jeff Layton <jeff.layton@primarydata.com> | 2015-04-03 09:04:02 -0400 |
---|---|---|
committer | Jeff Layton <jeff.layton@primarydata.com> | 2015-04-03 09:04:02 -0400 |
commit | 9b8c86956dea44276e2b2bb368f1f34895f4c5ea (patch) | |
tree | 6be539baf6853c6c8177a2480c7898e834f626af /fs/locks.c | |
parent | 9cd29044bd7be430f0d38620a6b0b6a0c017c6c9 (diff) |
locks: remove extraneous IS_POSIX and IS_FLOCK tests
We know that the locks being passed into this function are of the
correct type, now that they live on their own lists.
Signed-off-by: Jeff Layton <jeff.layton@primarydata.com>
Diffstat (limited to 'fs/locks.c')
-rw-r--r-- | fs/locks.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/locks.c b/fs/locks.c index 4517b8bfca11..f88ed4506664 100644 --- a/fs/locks.c +++ b/fs/locks.c | |||
@@ -730,7 +730,7 @@ static int posix_locks_conflict(struct file_lock *caller_fl, struct file_lock *s | |||
730 | /* POSIX locks owned by the same process do not conflict with | 730 | /* POSIX locks owned by the same process do not conflict with |
731 | * each other. | 731 | * each other. |
732 | */ | 732 | */ |
733 | if (!IS_POSIX(sys_fl) || posix_same_owner(caller_fl, sys_fl)) | 733 | if (posix_same_owner(caller_fl, sys_fl)) |
734 | return (0); | 734 | return (0); |
735 | 735 | ||
736 | /* Check whether they overlap */ | 736 | /* Check whether they overlap */ |
@@ -748,7 +748,7 @@ static int flock_locks_conflict(struct file_lock *caller_fl, struct file_lock *s | |||
748 | /* FLOCK locks referring to the same filp do not conflict with | 748 | /* FLOCK locks referring to the same filp do not conflict with |
749 | * each other. | 749 | * each other. |
750 | */ | 750 | */ |
751 | if (!IS_FLOCK(sys_fl) || (caller_fl->fl_file == sys_fl->fl_file)) | 751 | if (caller_fl->fl_file == sys_fl->fl_file) |
752 | return (0); | 752 | return (0); |
753 | if ((caller_fl->fl_type & LOCK_MAND) || (sys_fl->fl_type & LOCK_MAND)) | 753 | if ((caller_fl->fl_type & LOCK_MAND) || (sys_fl->fl_type & LOCK_MAND)) |
754 | return 0; | 754 | return 0; |