locking/mutex: Use mutex flags macro instead of hard code

Use the mutex flag macro instead of hard code value inside
__mutex_owner().

Signed-off-by: Mukesh Ojha <mojha@codeaurora.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: mingo@redhat.com
Cc: will@kernel.org
Link: https://lkml.kernel.org/r/1564585504-3543-2-git-send-email-mojha@codeaurora.org
This commit is contained in:
Mukesh Ojha 2019-07-31 20:35:04 +05:30 коммит произвёл Peter Zijlstra
Родитель 5f35d5a66b
Коммит a037d26922
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -85,7 +85,7 @@ EXPORT_SYMBOL(__mutex_init);
*/ */
static inline struct task_struct *__mutex_owner(struct mutex *lock) static inline struct task_struct *__mutex_owner(struct mutex *lock)
{ {
return (struct task_struct *)(atomic_long_read(&lock->owner) & ~0x07); return (struct task_struct *)(atomic_long_read(&lock->owner) & ~MUTEX_FLAGS);
} }
static inline struct task_struct *__owner_task(unsigned long owner) static inline struct task_struct *__owner_task(unsigned long owner)