summaryrefslogtreecommitdiffstats
path: root/fs/hfsplus/super.c
diff options
context:
space:
mode:
authorAlexey Khoroshilov <khoroshilov@ispras.ru>2011-07-06 00:30:00 +0200
committerChristoph Hellwig <hch@lst.de>2011-07-07 17:45:46 +0200
commitdd7f3d5458e5c0eded620fe8192abe7e418fc94c (patch)
tree80ccd8fe3d0e7dab7d18852ceac6b4093d3cd44a /fs/hfsplus/super.c
parenthfsplus: add error checking for hfs_find_init() (diff)
downloadlinux-dd7f3d5458e5c0eded620fe8192abe7e418fc94c.tar.xz
linux-dd7f3d5458e5c0eded620fe8192abe7e418fc94c.zip
hfsplus: Add error propagation for hfsplus_ext_write_extent_locked
Implement error propagation through the callers of hfsplus_ext_write_extent_locked(). Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/hfsplus/super.c')
-rw-r--r--fs/hfsplus/super.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/fs/hfsplus/super.c b/fs/hfsplus/super.c
index 2c1a72287fb5..84f56e1f6dac 100644
--- a/fs/hfsplus/super.c
+++ b/fs/hfsplus/super.c
@@ -135,9 +135,13 @@ static int hfsplus_system_write_inode(struct inode *inode)
static int hfsplus_write_inode(struct inode *inode,
struct writeback_control *wbc)
{
+ int err;
+
dprint(DBG_INODE, "hfsplus_write_inode: %lu\n", inode->i_ino);
- hfsplus_ext_write_extent(inode);
+ err = hfsplus_ext_write_extent(inode);
+ if (err)
+ return err;
if (inode->i_ino >= HFSPLUS_FIRSTUSER_CNID ||
inode->i_ino == HFSPLUS_ROOT_CNID)