journal.c (50655ae9e91d272d48997bada59efe166aa5e343) journal.c (13723d00e374c2a6d6ccb5af6de965e89c3e1b01)
1/* -*- mode: c; c-basic-offset: 8; -*-
2 * vim: noexpandtab sw=8 ts=8 sts=0:
3 *
4 * journal.c
5 *
6 * Defines functions of journalling api
7 *
8 * Copyright (C) 2003, 2004 Oracle. All rights reserved.

--- 738 unchanged lines hidden (view full) ---

747 flags |= OCFS2_JOURNAL_DIRTY_FL;
748 else
749 flags &= ~OCFS2_JOURNAL_DIRTY_FL;
750 fe->id1.journal1.ij_flags = cpu_to_le32(flags);
751
752 if (replayed)
753 ocfs2_bump_recovery_generation(fe);
754
1/* -*- mode: c; c-basic-offset: 8; -*-
2 * vim: noexpandtab sw=8 ts=8 sts=0:
3 *
4 * journal.c
5 *
6 * Defines functions of journalling api
7 *
8 * Copyright (C) 2003, 2004 Oracle. All rights reserved.

--- 738 unchanged lines hidden (view full) ---

747 flags |= OCFS2_JOURNAL_DIRTY_FL;
748 else
749 flags &= ~OCFS2_JOURNAL_DIRTY_FL;
750 fe->id1.journal1.ij_flags = cpu_to_le32(flags);
751
752 if (replayed)
753 ocfs2_bump_recovery_generation(fe);
754
755 ocfs2_compute_meta_ecc(osb->sb, bh->b_data, &fe->i_check);
755 status = ocfs2_write_block(osb, bh, journal->j_inode);
756 if (status < 0)
757 mlog_errno(status);
758
759 mlog_exit(status);
760 return status;
761}
762

--- 718 unchanged lines hidden (view full) ---

1481 flags &= ~OCFS2_JOURNAL_DIRTY_FL;
1482 fe->id1.journal1.ij_flags = cpu_to_le32(flags);
1483
1484 /* Increment recovery generation to indicate successful recovery */
1485 ocfs2_bump_recovery_generation(fe);
1486 osb->slot_recovery_generations[slot_num] =
1487 ocfs2_get_recovery_generation(fe);
1488
756 status = ocfs2_write_block(osb, bh, journal->j_inode);
757 if (status < 0)
758 mlog_errno(status);
759
760 mlog_exit(status);
761 return status;
762}
763

--- 718 unchanged lines hidden (view full) ---

1482 flags &= ~OCFS2_JOURNAL_DIRTY_FL;
1483 fe->id1.journal1.ij_flags = cpu_to_le32(flags);
1484
1485 /* Increment recovery generation to indicate successful recovery */
1486 ocfs2_bump_recovery_generation(fe);
1487 osb->slot_recovery_generations[slot_num] =
1488 ocfs2_get_recovery_generation(fe);
1489
1490 ocfs2_compute_meta_ecc(osb->sb, bh->b_data, &fe->i_check);
1489 status = ocfs2_write_block(osb, bh, inode);
1490 if (status < 0)
1491 mlog_errno(status);
1492
1493 if (!igrab(inode))
1494 BUG();
1495
1496 jbd2_journal_destroy(journal);

--- 462 unchanged lines hidden ---
1491 status = ocfs2_write_block(osb, bh, inode);
1492 if (status < 0)
1493 mlog_errno(status);
1494
1495 if (!igrab(inode))
1496 BUG();
1497
1498 jbd2_journal_destroy(journal);

--- 462 unchanged lines hidden ---