btrfs: use umove_or_printaddr_ignore_syserror instead of u_error mangling

* btrfs.c (MPERS_PRINTER_DECL(btrfs_ioctl)) <case
BTRFS_IOC_TREE_SEARCH_V2>: Use umove_or_printaddr_ignore_syserror
instead of tcp->u_error mangling around umove_or_printaddr call.
This commit is contained in:
Eugene Syromyatnikov 2018-03-14 21:08:34 +01:00 committed by Dmitry V. Levin
parent 68869ae825
commit 7db513885a

View File

@ -1181,11 +1181,10 @@ MPERS_PRINTER_DECL(int, btrfs_ioctl,
else if (syserror(tcp)) {
if (tcp->u_error == EOVERFLOW) {
tprints(" => ");
tcp->u_error = 0;
if (!umove_or_printaddr(tcp, arg, &args))
if (!umove_or_printaddr_ignore_syserror(tcp,
arg, &args))
tprintf("{buf_size=%" PRIu64 "}",
(uint64_t)args.buf_size);
tcp->u_error = EOVERFLOW;
}
break;
} else