git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fs/ext4: fix comments mentioning i_mutex
[sfrench/cifs-2.6.git]
/
fs
/
ext4
/
ext4_jbd2.c
diff --git
a/fs/ext4/ext4_jbd2.c
b/fs/ext4/ext4_jbd2.c
index 6def7339056db88cf220af21819decbabe2935aa..3477a16d08aeeb66408fdc1b5fe86c0f203583f7 100644
(file)
--- a/
fs/ext4/ext4_jbd2.c
+++ b/
fs/ext4/ext4_jbd2.c
@@
-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;