aboutsummaryrefslogtreecommitdiffstats
path: root/fs/hfsplus/super.c
diff options
context:
space:
mode:
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)
135static int hfsplus_write_inode(struct inode *inode, 135static int hfsplus_write_inode(struct inode *inode,
136 struct writeback_control *wbc) 136 struct writeback_control *wbc)
137{ 137{
138 int err;
139
138 dprint(DBG_INODE, "hfsplus_write_inode: %lu\n", inode->i_ino); 140 dprint(DBG_INODE, "hfsplus_write_inode: %lu\n", inode->i_ino);
139 141
140 hfsplus_ext_write_extent(inode); 142 err = hfsplus_ext_write_extent(inode);
143 if (err)
144 return err;
141 145
142 if (inode->i_ino >= HFSPLUS_FIRSTUSER_CNID || 146 if (inode->i_ino >= HFSPLUS_FIRSTUSER_CNID ||
143 inode->i_ino == HFSPLUS_ROOT_CNID) 147 inode->i_ino == HFSPLUS_ROOT_CNID)