]> git.baikalelectronics.ru Git - 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)
commitf99e6b10231b3326cd22823b7b95a17fe65cd7f3
treede83b9e69d357898b2b737257b33dfc1ace75ba8
parent2ee302791c96bb0723771e29aeddc4984af2f0a1
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