]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
ChangeLog, jfs.h:
authorTheodore Ts'o <tytso@mit.edu>
Fri, 8 Jun 2001 11:55:44 +0000 (11:55 +0000)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 8 Jun 2001 11:55:44 +0000 (11:55 +0000)
  jfs.h: Synchronize with ext3 0.7a
ChangeLog, recovery.c, revoke.c:
  recover.c, revoke.c: Synchronize with ext3 0.7a

e2fsck/ChangeLog
e2fsck/recovery.c
e2fsck/revoke.c
include/linux/ChangeLog
include/linux/jfs.h

index 3edbaccf7ce170c5992e42ab8e182376ae48a0a9..28cbf55315a43ab9f211717e3ea28b5f75c749df 100644 (file)
@@ -1,3 +1,7 @@
+2001-06-08  Theodore Tso  <tytso@valinux.com>
+
+       * recover.c, revoke.c: Synchronize with ext3 0.7a
+
 2001-06-02  Theodore Tso  <tytso@valinux.com>
 
        * recovery.c (scan_revoke_records): Fix bug in recovery code;
index 9867503c7219ffa93196f6f92925b5c525729151..cabf278f022ab0dd4535ba77a7a307025084fdd7 100644 (file)
@@ -284,7 +284,7 @@ int journal_skip_recovery(journal_t *journal)
 
        struct recovery_info    info;
        
-       memset (&info, 0, sizeof(info));
+       memset(&info, 0, sizeof(info));
        sb = journal->j_superblock;
        
        err = do_one_pass(journal, &info, PASS_SCAN);
index 28f8fa29a8f0d48d87bc71a9c306cb9cc06fe1b3..cdcf8efb7cd7319ff062eaa57eb48938f989674a 100644 (file)
  *   cancel the revoke before the transaction commits.
  *
  * Block is journaled and then revoked:
- *   The revoke must take precedence over the write of the block, so 
- *   we need either to cancel the journal entry or to write the revoke
+ *   The revoke must take precedence over the write of the block, so we
+ *   need either to cancel the journal entry or to write the revoke
  *   later in the log than the log block.  In this case, we choose the
- *   former: the commit code must skip any block that has the Revoke bit
- *   set.
+ *   latter: journaling a block cancels any revoke record for that block
+ *   in the current transaction, so any revoke for that block in the
+ *   transaction must have happened after the block was journaled and so
+ *   the revoke must take precedence.
  *
  * Block is revoked and then written as data: 
  *   The data write is allowed to succeed, but the revoke is _not_
@@ -52,7 +54,7 @@
  *                     buffer has not been revoked, and cancel_revoke
  *                     need do nothing.
  * RevokeValid set, Revoke set:
- *                     buffer has been revoked.
+ * buffer has been revoked.  
  */
 
 #ifndef __KERNEL__
@@ -489,7 +491,7 @@ int journal_set_revoke(journal_t *journal,
        if (record) {
                /* If we have multiple occurences, only record the
                 * latest sequence number in the hashed record */
-               if (tid_ge(sequence, record->sequence))
+               if (tid_gt(sequence, record->sequence))
                        record->sequence = sequence;
                return 0;
        } 
@@ -512,7 +514,7 @@ int journal_test_revoke(journal_t *journal,
        record = find_revoke_record(journal, blocknr);
        if (!record)
                return 0;
-       if (tid_ge(sequence, record->sequence))
+       if (tid_gt(sequence, record->sequence))
                return 0;
        return 1;
 }
index a72940f8824c9659ae41881c14ce40e24e970f14..8f92e6a419d2ca37bbfde594ab8efd05c3e47622 100644 (file)
@@ -1,3 +1,7 @@
+2001-06-08  Theodore Tso  <tytso@valinux.com>
+
+       * jfs.h: Synchronize with ext3 0.7a
+
 2001-05-25  Theodore Tso  <tytso@valinux.com>
 
        * Release of E2fsprogs 1.20
index d4a83dee7944d40565ff11ba78932962d7bb5482..c00f4ed6c9d549db87b7883c37b27728d70aa416 100644 (file)
@@ -667,7 +667,7 @@ extern void    journal_clear_revoke(journal_t *);
 /* Comparison functions for transaction IDs: perform comparisons using
  * modulo arithmetic so that they work over sequence number wraps. */
 
-static inline int tid_ge(tid_t x, tid_t y)
+static inline int tid_gt(tid_t x, tid_t y)
 {
        int difference = (x - y);
        return (difference > 0);