]> git.baikalelectronics.ru Git - kernel.git/commit
d_path: make 'prepend()' fill up the buffer exactly on overflow
authorLinus Torvalds <torvalds@linux-foundation.org>
Fri, 16 Jul 2021 21:01:12 +0000 (14:01 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 2 Sep 2021 17:07:29 +0000 (10:07 -0700)
commit3abc18bd1223f88e7af70f557002e0404a405a4e
tree0ca4b4fe991900a825e39d32a1c899cd051b826f
parentb21ae08a2ad1e31317c4af6e118edb86da38fa76
d_path: make 'prepend()' fill up the buffer exactly on overflow

Instead of just marking the buffer as having overflowed, fill it up as
much as we can.  That will allow the overflow case to then return
whatever truncated result if it wants to.

Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/d_path.c