Merge tag 'mailbox-v5.8' of git://git.linaro.org/landing-teams/working/fujitsu/integr...
[linux-2.6-block.git] / fs / ext4 / indirect.c
index 107f0043f67f1654c207ccff948fba6685890c06..be2b66eb65f7a398329e292454de667befb417f1 100644 (file)
@@ -467,7 +467,9 @@ static int ext4_splice_branch(handle_t *handle,
                /*
                 * OK, we spliced it into the inode itself on a direct block.
                 */
-               ext4_mark_inode_dirty(handle, ar->inode);
+               err = ext4_mark_inode_dirty(handle, ar->inode);
+               if (unlikely(err))
+                       goto err_out;
                jbd_debug(5, "splicing direct\n");
        }
        return err;