diff options
author | Jan Kara <jack@suse.cz> | 2019-03-11 15:27:02 +0100 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2019-03-18 16:30:02 +0100 |
commit | 2b42be5eb24564227b15e66f54f088e5a26549c7 (patch) | |
tree | eeb32b8731b61f2ce1fb54ed52cc2a3801d2d1b7 /fs/udf/udfdecl.h | |
parent | d3ca4651d05c0ff7259d087d8c949bcf3e14fb46 (diff) | |
download | linux-2b42be5eb24564227b15e66f54f088e5a26549c7.tar.bz2 |
udf: Propagate errors from udf_truncate_extents()
Make udf_truncate_extents() properly propagate errors to its callers and
let udf_setsize() handle the error properly as well. This lets userspace
know in case there's some error when truncating blocks.
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/udf/udfdecl.h')
-rw-r--r-- | fs/udf/udfdecl.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/udf/udfdecl.h b/fs/udf/udfdecl.h index ee246769dee4..d89ef71887fc 100644 --- a/fs/udf/udfdecl.h +++ b/fs/udf/udfdecl.h @@ -235,7 +235,7 @@ extern struct inode *udf_new_inode(struct inode *, umode_t); /* truncate.c */ extern void udf_truncate_tail_extent(struct inode *); extern void udf_discard_prealloc(struct inode *); -extern void udf_truncate_extents(struct inode *); +extern int udf_truncate_extents(struct inode *); /* balloc.c */ extern void udf_free_blocks(struct super_block *, struct inode *, |