]> git.baikalelectronics.ru Git - kernel.git/commit
excessive checks in ufs_write_failed() and ufs_evict_inode()
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 9 Jun 2017 20:20:34 +0000 (16:20 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 9 Jun 2017 20:28:01 +0000 (16:28 -0400)
commitf72da5f39b5fd6cad882a1ce9fe3e7f5c62f090e
tree505658793d3ac66c9e103ae27ef1560b46bc6912
parentb6475763ec76b215000a3826a4768a907dbb0d31
excessive checks in ufs_write_failed() and ufs_evict_inode()

As it is, short copy in write() to append-only file will fail
to truncate the excessive allocated blocks.  As the matter of
fact, all checks in ufs_truncate_blocks() are either redundant
or wrong for that caller.  As for the only other caller
(ufs_evict_inode()), we only need the file type checks there.

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