]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/reiserfs/stree.c
autofs4: collect version check return
[linux-2.6-omap-h63xx.git] / fs / reiserfs / stree.c
index d2db2417b2bd68a96ad57ff4e8bf429d5aeee0d1..abbc64dcc8d453cd8bd2281e382c85c37bd4fbf6 100644 (file)
@@ -1419,8 +1419,7 @@ int reiserfs_delete_object(struct reiserfs_transaction_handle *th,
 
                inode_generation =
                    &REISERFS_SB(th->t_super)->s_rs->s_inode_generation;
-               *inode_generation =
-                   cpu_to_le32(le32_to_cpu(*inode_generation) + 1);
+               le32_add_cpu(inode_generation, 1);
        }
 /* USE_INODE_GENERATION_COUNTER */
 #endif