]> www.infradead.org Git - users/willy/pagecache.git/commit
fs/pipe: remove buggy and unused 'helper' function
authorLinus Torvalds <torvalds@linux-foundation.org>
Wed, 5 Mar 2025 17:35:40 +0000 (07:35 -1000)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 5 Mar 2025 17:35:40 +0000 (07:35 -1000)
commit0d2d0f3d93ddd6556f23c917d910becd9925ddeb
tree56bcd85e017a52d25d5592273cc47c97d87ef1a3
parentcfced12f5100e50d56bc587299393fd33c1169a9
fs/pipe: remove buggy and unused 'helper' function

While looking for incorrect users of the pipe head/tail fields (see
commit c27c66afc449: "fs/pipe: Fix pipe_occupancy() with 16-bit
indexes"), I found a bug in pipe_discard_from() that looked entirely
broken.

However, the fix is trivial: this buggy function isn't actually called
by anything, so let's just remove it ASAP.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/pipe_fs_i.h