ufs: free excessive blocks upon ->write_begin() failure/short copy
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 16 Jun 2015 22:06:40 +0000 (18:06 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 6 Jul 2015 21:39:21 +0000 (17:39 -0400)
commit3b7a3a05e8b006a73c406230b3d2d3da920779d9
tree84f527922d2d9d596c51e1f638b35bb6b31ca00f
parentd622f167b8435c856376edec130053fb56bf83e4
ufs: free excessive blocks upon ->write_begin() failure/short copy

Broken in "[PATCH] ufs: truncate should allocate block for last byte";
all way back in 2006.  ufs_setattr() hadn't been the only user of
vmtruncate() and eliminating ->truncate() method required corrections
in a bunch of places.  Eventually those places had migrated into
->write_begin() failure exit and ->write_end() after short copy...

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