fs/ext4: fix comments mentioning i_mutex
[sfrench/cifs-2.6.git] / fs / ext4 / ext4_jbd2.c
index 6def7339056db88cf220af21819decbabe2935aa..3477a16d08aeeb66408fdc1b5fe86c0f203583f7 100644 (file)
@@ -162,6 +162,8 @@ int __ext4_journal_ensure_credits(handle_t *handle, int check_cred,
 {
        if (!ext4_handle_valid(handle))
                return 0;
+       if (is_handle_aborted(handle))
+               return -EROFS;
        if (jbd2_handle_buffer_credits(handle) >= check_cred &&
            handle->h_revoke_credits >= revoke_cred)
                return 0;