]> git.baikalelectronics.ru Git - kernel.git/commit
fs/minix: remove expected error message in block_to_path()
authorEric Biggers <ebiggers@google.com>
Wed, 12 Aug 2020 01:35:39 +0000 (18:35 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 12 Aug 2020 17:58:00 +0000 (10:58 -0700)
commitcb6e0c24500f93eff932d8b2f96060d7d4463a04
tree3fdebc660503c257cf70d7a3ef0cf4e1f46ff87e
parent3e3c3be1967e3bf81ed7518bd04707ad4b7eb051
fs/minix: remove expected error message in block_to_path()

When truncating a file to a size within the last allowed logical block,
block_to_path() is called with the *next* block.  This exceeds the limit,
causing the "block %ld too big" error message to be printed.

This case isn't actually an error; there are just no more blocks past that
point.  So, remove this error message.

Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Cc: Qiujun Huang <anenbupt@gmail.com>
Link: http://lkml.kernel.org/r/20200628060846.682158-7-ebiggers@kernel.org
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/minix/itree_v1.c
fs/minix/itree_v2.c