]> granicus.if.org Git - strace/commit
userfaultfd: streamline logic
authorEugene Syromyatnikov <evgsyr@gmail.com>
Sat, 26 Aug 2017 22:54:24 +0000 (00:54 +0200)
committerEugene Syromyatnikov <evgsyr@gmail.com>
Mon, 28 Aug 2017 00:33:20 +0000 (02:33 +0200)
commitd4555fd56e3837a9afdd1eb907c03e68ca4b0015
tree08a8ad37402dd40e3e9bb4ce8486a2f93b4ea2a6
parentabc0ad04424c516454f7734c8c7443798ba88916
userfaultfd: streamline logic

Make userfaultfd ioctl handling more in line with other ioctl decoders.

* userfaultfd.c (uffdio_ioctl): Return RVAL_DECODED | 1, break instead
of returning in specific command handlers, return 0 on entering paths,
move exiting paths out of else branch of entering(tcp) condition.
userfaultfd.c