ufs_trunc_tindirect(): pass the number of blocks to keep
authorAl Viro <viro@zeniv.linux.org.uk>
Thu, 18 Jun 2015 17:45:07 +0000 (13:45 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 6 Jul 2015 21:39:33 +0000 (17:39 -0400)
commit18ca51d8211065f10672374336cd08d495968c73
tree9be8fb4d8d961ecee2d7195b3eb38e49c2c4f311
parent31cd043e1a09c579c4cd38ea432200fbeae6af1f
ufs_trunc_tindirect(): pass the number of blocks to keep

IOW, the distance of cutoff from the begining of the branch
(in blocks).

That (and the fact that block just prior to cutoff is guaranteed to
be present) allows to tell whether to free triple indirect block
just by looking at the offset.

While we are at it, using u64 for index in the block is wrong -
those should be unsigned int.

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