diff options
Diffstat (limited to 'debugfs/icheck.c')
-rw-r--r-- | debugfs/icheck.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/debugfs/icheck.c b/debugfs/icheck.c index 643bc5bc..729ac930 100644 --- a/debugfs/icheck.c +++ b/debugfs/icheck.c @@ -106,13 +106,15 @@ void do_icheck(int argc, char **argv) } while (ino) { + blk64_t blk; + if (!inode.i_links_count) goto next; bw.inode = ino; - if (ext2fs_file_acl_block(&inode)) { - blk64_t blk; + blk = ext2fs_file_acl_block(&inode); + if (blk) { icheck_proc(current_fs, &blk, 0, 0, 0, &bw); if (bw.blocks_left == 0) |