aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/jbd2/transaction.c22
1 files changed, 5 insertions, 17 deletions
diff --git a/fs/jbd2/transaction.c b/fs/jbd2/transaction.c
index 081dff087fc0..01e4652d88f6 100644
--- a/fs/jbd2/transaction.c
+++ b/fs/jbd2/transaction.c
@@ -966,14 +966,8 @@ repeat:
966 if (!frozen_buffer) { 966 if (!frozen_buffer) {
967 JBUFFER_TRACE(jh, "allocate memory for buffer"); 967 JBUFFER_TRACE(jh, "allocate memory for buffer");
968 jbd_unlock_bh_state(bh); 968 jbd_unlock_bh_state(bh);
969 frozen_buffer = jbd2_alloc(jh2bh(jh)->b_size, GFP_NOFS); 969 frozen_buffer = jbd2_alloc(jh2bh(jh)->b_size,
970 if (!frozen_buffer) { 970 GFP_NOFS | __GFP_NOFAIL);
971 printk(KERN_ERR "%s: OOM for frozen_buffer\n",
972 __func__);
973 JBUFFER_TRACE(jh, "oom!");
974 error = -ENOMEM;
975 goto out;
976 }
977 goto repeat; 971 goto repeat;
978 } 972 }
979 jh->b_frozen_data = frozen_buffer; 973 jh->b_frozen_data = frozen_buffer;
@@ -1226,15 +1220,9 @@ int jbd2_journal_get_undo_access(handle_t *handle, struct buffer_head *bh)
1226 goto out; 1220 goto out;
1227 1221
1228repeat: 1222repeat:
1229 if (!jh->b_committed_data) { 1223 if (!jh->b_committed_data)
1230 committed_data = jbd2_alloc(jh2bh(jh)->b_size, GFP_NOFS); 1224 committed_data = jbd2_alloc(jh2bh(jh)->b_size,
1231 if (!committed_data) { 1225 GFP_NOFS|__GFP_NOFAIL);
1232 printk(KERN_ERR "%s: No memory for committed data\n",
1233 __func__);
1234 err = -ENOMEM;
1235 goto out;
1236 }
1237 }
1238 1226
1239 jbd_lock_bh_state(bh); 1227 jbd_lock_bh_state(bh);
1240 if (!jh->b_committed_data) { 1228 if (!jh->b_committed_data) {