fs/pipe: move check to pipe_has_watch_queue()
authorMax Kellermann <max.kellermann@ionos.com>
Thu, 21 Sep 2023 07:57:53 +0000 (09:57 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 1 Feb 2024 00:19:09 +0000 (16:19 -0800)
commit67f457955ba86191130ec62814ea0cea1b9cd964
treef271d7a5f27ee090d894faee637c38d8cbbe7d94
parent019ccc66d56a696a4dfee3bfa2f04d0a7c3d89ee
fs/pipe: move check to pipe_has_watch_queue()

[ Upstream commit b4bd6b4bac8edd61eb8f7b836969d12c0c6af165 ]

This declutters the code by reducing the number of #ifdefs and makes
the watch_queue checks simpler.  This has no runtime effect; the
machine code is identical.

Signed-off-by: Max Kellermann <max.kellermann@ionos.com>
Message-Id: <20230921075755.1378787-2-max.kellermann@ionos.com>
Reviewed-by: David Howells <dhowells@redhat.com>
Signed-off-by: Christian Brauner <brauner@kernel.org>
Stable-dep-of: e95aada4cb93 ("pipe: wakeup wr_wait after setting max_usage")
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/pipe.c
include/linux/pipe_fs_i.h