btrfs-progs: tests: move delete_subvol_children under HAVE_BTRFSUTIL_H fsstress.c

Bring the  'delete_subvol_children' function under the HAVE_BTRFSUTIL_H
define and fix the following warnings. This function is called only when
'HAVE_BTRFSUTILS_H' is defined.

tests/fsstress.c:1183:1: warning: ‘delete_subvol_children’ defined but not used [-Wunused-function]
 1183 | delete_subvol_children(int parid

Signed-off-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
Anand Jain 2023-06-23 15:59:02 +08:00 committed by David Sterba
parent b31f1e6988
commit d52686fc2a

View File

@ -1179,6 +1179,7 @@ del_from_flist(int ft, int slot)
ftp->nfiles--;
}
#ifdef HAVE_BTRFSUTIL_H
static void
delete_subvol_children(int parid)
{
@ -1198,6 +1199,7 @@ again:
}
}
}
#endif
static fent_t *
dirid_to_fent(int dirid)