diff options
Diffstat (limited to 'ext2fs/ialloc.c')
-rw-r--r-- | ext2fs/ialloc.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/ext2fs/ialloc.c b/ext2fs/ialloc.c index 52212d59..7cfc4f32 100644 --- a/ext2fs/ialloc.c +++ b/ext2fs/ialloc.c @@ -316,14 +316,14 @@ diskfs_alloc_node (struct node *dir, mode_t mode, struct node **node) } /* Zero out the block pointers in case there's some noise left on disk. */ for (block = 0; block < EXT2_N_BLOCKS; block++) - if (np->dn->info.i_data[block] != 0) + if (diskfs_node_disknode (np)->info.i_data[block] != 0) { - np->dn->info.i_data[block] = 0; + diskfs_node_disknode (np)->info.i_data[block] = 0; np->dn_set_ctime = 1; } - if (np->dn->info_i_translator != 0) + if (diskfs_node_disknode (np)->info_i_translator != 0) { - np->dn->info_i_translator = 0; + diskfs_node_disknode (np)->info_i_translator = 0; np->dn_set_ctime = 1; } st->st_mode &= ~S_IPTRANS; @@ -335,8 +335,9 @@ diskfs_alloc_node (struct node *dir, mode_t mode, struct node **node) } /* Propagate initial inode flags from the directory, as Linux does. */ - np->dn->info.i_flags = - ext2_mask_flags(mode, dir->dn->info.i_flags & EXT2_FL_INHERITED); + diskfs_node_disknode (np)->info.i_flags = + ext2_mask_flags(mode, + diskfs_node_disknode (dir)->info.i_flags & EXT2_FL_INHERITED); st->st_flags = 0; |