]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - fs/ocfs2/journal.c
s390/purgatory: Make sure we fail the build if purgatory has missing symbols
[linux.git] / fs / ocfs2 / journal.c
index 699a560efbb02b498b01ba2df49f5b334766fa59..1afe57f425a01e85639dd6192948bb4b6c3a9bbe 100644 (file)
@@ -420,14 +420,14 @@ int ocfs2_extend_trans(handle_t *handle, int nblocks)
        if (!nblocks)
                return 0;
 
-       old_nblocks = handle->h_buffer_credits;
+       old_nblocks = jbd2_handle_buffer_credits(handle);
 
        trace_ocfs2_extend_trans(old_nblocks, nblocks);
 
 #ifdef CONFIG_OCFS2_DEBUG_FS
        status = 1;
 #else
-       status = jbd2_journal_extend(handle, nblocks);
+       status = jbd2_journal_extend(handle, nblocks, 0);
        if (status < 0) {
                mlog_errno(status);
                goto bail;
@@ -461,13 +461,13 @@ int ocfs2_allocate_extend_trans(handle_t *handle, int thresh)
 
        BUG_ON(!handle);
 
-       old_nblks = handle->h_buffer_credits;
+       old_nblks = jbd2_handle_buffer_credits(handle);
        trace_ocfs2_allocate_extend_trans(old_nblks, thresh);
 
        if (old_nblks < thresh)
                return 0;
 
-       status = jbd2_journal_extend(handle, OCFS2_MAX_TRANS_DATA);
+       status = jbd2_journal_extend(handle, OCFS2_MAX_TRANS_DATA, 0);
        if (status < 0) {
                mlog_errno(status);
                goto bail;