summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/shared/btrfs-util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/btrfs-util.c b/src/shared/btrfs-util.c
index 34ebaece02..7fb92b22ee 100644
--- a/src/shared/btrfs-util.c
+++ b/src/shared/btrfs-util.c
@@ -849,7 +849,7 @@ static int subvol_remove_children(int fd, const char *subvolume, uint64_t subvol
zero(ino_args);
ino_args.treeid = subvol_id;
- ino_args.objectid = ref->dirid;
+ ino_args.objectid = htole64(ref->dirid);
if (ioctl(fd, BTRFS_IOC_INO_LOOKUP, &ino_args) < 0)
return -errno;