]> www.infradead.org Git - users/jedix/linux-maple.git/commit
pipe: drop an always true check in anon_pipe_write()
authorMateusz Guzik <mjguzik@gmail.com>
Mon, 3 Mar 2025 23:04:07 +0000 (00:04 +0100)
committerChristian Brauner <brauner@kernel.org>
Tue, 4 Mar 2025 08:46:06 +0000 (09:46 +0100)
commita40cd5849dab4906f54f27e28561bd9298455bcf
treec81453db00b59765c2cec22409bd6e9150fb5cd0
parentee5eda8ea59546af2e8f192c060fbf29862d7cbd
pipe: drop an always true check in anon_pipe_write()

The check operates on the stale value of 'head' and always loops back.

Just do it unconditionally. No functional changes.

Signed-off-by: Mateusz Guzik <mjguzik@gmail.com>
Link: https://lore.kernel.org/r/20250303230409.452687-2-mjguzik@gmail.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/pipe.c