mirror of
https://github.com/kdave/btrfs-progs
synced 2024-12-23 22:53:35 +00:00
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:
parent
b31f1e6988
commit
d52686fc2a
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user