Message ID | 20150818103937.GE5033@dhcp22.suse.cz (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/fs/jbd/transaction.c b/fs/jbd/transaction.c index bf7474deda2f..2151b80276c3 100644 --- a/fs/jbd/transaction.c +++ b/fs/jbd/transaction.c @@ -886,15 +886,8 @@ int journal_get_undo_access(handle_t *handle, struct buffer_head *bh) goto out; repeat: - if (!jh->b_committed_data) { - committed_data = jbd_alloc(jh2bh(jh)->b_size, GFP_NOFS); - if (!committed_data) { - printk(KERN_ERR "%s: No memory for committed data\n", - __func__); - err = -ENOMEM; - goto out; - } - } + if (!jh->b_committed_data) + committed_data = jbd_alloc(jh2bh(jh)->b_size, GFP_NOFS | __GFP_NOFAIL); jbd_lock_bh_state(bh); if (!jh->b_committed_data) {