commit | 18ca51d8211065f10672374336cd08d495968c73 | [log] [tgz] |
---|---|---|
author | Al Viro <viro@zeniv.linux.org.uk> | Thu Jun 18 13:45:07 2015 -0400 |
committer | Al Viro <viro@zeniv.linux.org.uk> | Mon Jul 06 17:39:33 2015 -0400 |
tree | 9be8fb4d8d961ecee2d7195b3eb38e49c2c4f311 | |
parent | 31cd043e1a09c579c4cd38ea432200fbeae6af1f [diff] |
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>