ext2_ino_t inode;
};
-static int icheck_proc(ext2_filsys fs,
+static int icheck_proc(ext2_filsys fs EXT2FS_ATTR((unused)),
blk_t *block_nr,
- e2_blkcnt_t blockcnt,
- blk_t ref_block,
- int ref_offset,
+ e2_blkcnt_t blockcnt EXT2FS_ATTR((unused)),
+ blk_t ref_block EXT2FS_ATTR((unused)),
+ int ref_offset EXT2FS_ATTR((unused)),
void *private)
{
struct block_walk_struct *bw = (struct block_walk_struct *) private;
if (!inode.i_links_count)
goto next;
+ bw.inode = ino;
+
if (inode.i_file_acl) {
- icheck_proc(fs, &inode.i_file_acl, 0, 0, 0, &bw);
+ icheck_proc(current_fs, &inode.i_file_acl, 0,
+ 0, 0, &bw);
if (bw.blocks_left == 0)
break;
}
if (inode.i_dtime)
goto next;
- bw.inode = ino;
-
retval = ext2fs_block_iterate2(current_fs, ino, 0, block_buf,
icheck_proc, &bw);
if (retval) {