ufs_trunc_..indirect(): more massage towards unifying
authorAl Viro <viro@zeniv.linux.org.uk>
Thu, 18 Jun 2015 18:55:50 +0000 (14:55 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 6 Jul 2015 21:39:38 +0000 (17:39 -0400)
Instead of manually checking that the array contains only zeroes,
find the position of the last non-zero (in __ufs_truncate(), where
we can conveniently do that) and use that to tell if there's
any non-zero in the array tail passed to ufs_trunc_...indirect().

The goal of all that clumsiness is to get fold these functions
together.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/ufs/inode.c

diff --cc fs/ufs/inode.c
Simple merge