]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs_repair: remove type from da & dir2 cursors
authorEric Sandeen <sandeen@sandeen.net>
Tue, 13 Oct 2015 23:29:20 +0000 (10:29 +1100)
committerDave Chinner <david@fromorbit.com>
Tue, 13 Oct 2015 23:29:20 +0000 (10:29 +1100)
The type field in these cursors is only set (and only
in the attr code), and it's never read; just remove
it.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
repair/attr_repair.c
repair/dir2.h

index d63bc87d8c251a621c71c934655476c72256db46..f29a5bdc7ddcb6641c3fb65016798e6f2aa6214b 100644 (file)
@@ -67,7 +67,6 @@ typedef struct da_level_state  {
 
 typedef struct da_bt_cursor  {
        int                     active; /* highest level in tree (# levels-1) */
-       int                     type;   /* 0 if dir, 1 if attr */
        xfs_ino_t               ino;
        xfs_dablk_t             greatest_bno;
        xfs_dinode_t            *dip;
@@ -1477,7 +1476,6 @@ process_node_attr(
         */
        memset(&da_cursor, 0, sizeof(da_bt_cursor_t));
        da_cursor.active = 0;
-       da_cursor.type = 0;
        da_cursor.ino = ino;
        da_cursor.dip = dip;
        da_cursor.greatest_bno = 0;
index df68d5c81fad5790fcb6c02952076f07a3db5b8e..3cc1941f16c57cf6c5a5e352fe0b181694e28e33 100644 (file)
@@ -51,7 +51,6 @@ typedef struct dir2_level_state  {
 
 typedef struct dir2_bt_cursor  {
        int                     active; /* highest level in tree (# levels-1) */
-       int                     type;   /* 0 if dir, 1 if attr */
        xfs_ino_t               ino;
        xfs_dablk_t             greatest_bno;
        xfs_dinode_t            *dip;