]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
ext4: allow ext4_truncate() to return an error
authorTheodore Ts'o <tytso@mit.edu>
Mon, 14 Nov 2016 03:02:26 +0000 (22:02 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 14 Nov 2016 03:02:26 +0000 (22:02 -0500)
commit2c98eb5ea249767bbc11cf4e70e91d5b0458ed13
treede83b9e69d357898b2b737257b33dfc1ace75ba8
parent6da22013bb7907b33c87968c25034b409a6161a2
ext4: allow ext4_truncate() to return an error

This allows us to properly propagate errors back up to
ext4_truncate()'s callers.  This also means we no longer have to
silently ignore some errors (e.g., when trying to add the inode to the
orphan inode list).

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Jan Kara <jack@suse.cz>
fs/ext4/ext4.h
fs/ext4/inode.c
fs/ext4/ioctl.c
fs/ext4/super.c