summaryrefslogtreecommitdiffstats
path: root/fs/udf/udfdecl.h
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2014-09-04 16:15:51 +0200
committerJan Kara <jack@suse.cz>2014-09-04 21:36:35 +0200
commit6d3d5e860a114ae606b1af2ba7f64cb19fbeb414 (patch)
tree81d9443311a711bf56bc07f82cbd5328fcd376a7 /fs/udf/udfdecl.h
parentc03aa9f6e1f938618e6db2e23afef0574efeeb65 (diff)
downloadlinux-6d3d5e860a114ae606b1af2ba7f64cb19fbeb414.tar.gz
linux-6d3d5e860a114ae606b1af2ba7f64cb19fbeb414.tar.bz2
linux-6d3d5e860a114ae606b1af2ba7f64cb19fbeb414.zip
udf: Make udf_read_inode() and udf_iget() return error
Currently __udf_read_inode() wasn't returning anything and we found out whether we succeeded reading inode by checking whether inode is bad or not. udf_iget() returned NULL on failure and inode pointer otherwise. Make these two functions properly propagate errors up the call stack and use the return value in callers. Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/udf/udfdecl.h')
-rw-r--r--fs/udf/udfdecl.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/udf/udfdecl.h b/fs/udf/udfdecl.h
index be7dabbbcb49..41a8115c9345 100644
--- a/fs/udf/udfdecl.h
+++ b/fs/udf/udfdecl.h
@@ -143,7 +143,6 @@ extern int udf_expand_file_adinicb(struct inode *);
extern struct buffer_head *udf_expand_dir_adinicb(struct inode *, int *, int *);
extern struct buffer_head *udf_bread(struct inode *, int, int, int *);
extern int udf_setsize(struct inode *, loff_t);
-extern void udf_read_inode(struct inode *);
extern void udf_evict_inode(struct inode *);
extern int udf_write_inode(struct inode *, struct writeback_control *wbc);
extern long udf_block_map(struct inode *, sector_t);