OSDN Git Service

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)
commitf666f9fb9a36f1c833b9d18923572f0e4d304754
tree3fdebc660503c257cf70d7a3ef0cf4e1f46ff87e
parent0a12c4a8069607247cb8edc3b035a664e636fd9a
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