ufs_trunc_branch(): never call with offsets != NULL && depth2 == 0
authorAl Viro <viro@zeniv.linux.org.uk>
Thu, 18 Jun 2015 20:05:18 +0000 (16:05 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 6 Jul 2015 21:39:42 +0000 (17:39 -0400)
commit97e0f8f87c918620689ce542664a3115b752649d
tree36e273e55397ebe7b11a91041883703ade4aa0e9
parent42432739b5902f72011f701f5cd5b4227ebe991c
ufs_trunc_branch(): never call with offsets != NULL && depth2 == 0

For calls in __ufs_truncate_blocks() it's just a matter of not
incrementing offsets[0] and not making that call - immediately
following loop will be executed one extra time and we'll be just
fine.  For recursive call in ufs_trunc_branch() itself, just
assing NULL to offsets if we would be about to make such call.

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