Christian Brauner ba5afb9a84
fs: rework listmount() implementation
Linus pointed out that there's error handling and naming issues in the
that we should rewrite:

* Perform the access checks for the buffer before actually doing any
  work instead of doing it during the iteration.
* Rename the arguments to listmount() and do_listmount() to clarify what
  the arguments are used for.
* Get rid of the pointless ctr variable and overflow checking.
* Get rid of the pointless speculation check.

Link: https://lore.kernel.org/r/CAHk-=wjh6Cypo8WC-McXgSzCaou3UXccxB+7PVeSuGR8AjCphg@mail.gmail.com
Suggested-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>
2024-01-13 13:06:25 +01:00
..
2023-11-04 09:20:04 -10:00
2024-01-11 20:11:35 -08:00
2024-01-11 20:11:35 -08:00
2024-01-10 16:34:17 -08:00
2024-01-11 13:58:04 -08:00
2024-01-11 20:11:35 -08:00
2024-01-11 20:11:35 -08:00
2023-10-30 09:47:13 -10:00
2023-11-07 12:11:26 -08:00
2023-11-03 22:24:11 +09:00
2024-01-11 20:39:15 -08:00
2023-11-07 12:11:26 -08:00
2024-01-08 11:11:51 -08:00
2024-01-10 10:17:23 -08:00
2023-12-29 11:58:34 -08:00
2023-11-03 15:15:47 -10:00
2024-01-10 17:44:36 -08:00
2024-01-10 17:44:36 -08:00
2024-01-11 20:11:35 -08:00
2024-01-10 17:44:36 -08:00
2023-11-07 12:11:26 -08:00
2024-01-11 20:11:35 -08:00
2024-01-10 17:44:36 -08:00
2023-10-30 09:47:13 -10:00
2024-01-11 20:27:41 -08:00
2024-01-11 20:11:35 -08:00
2024-01-11 10:07:29 -08:00
2024-01-10 17:44:36 -08:00
2024-01-10 17:44:36 -08:00
2023-12-21 13:17:54 +01:00
2023-10-30 19:28:19 -10:00
2023-10-30 19:28:19 -10:00
2024-01-11 20:11:35 -08:00
2024-01-10 17:44:36 -08:00
2024-01-11 20:11:35 -08:00
2023-12-12 14:24:14 +01:00
2023-10-30 09:14:19 -10:00
2024-01-11 20:00:22 -08:00
2024-01-11 20:11:35 -08:00
2024-01-11 20:11:35 -08:00
2024-01-11 20:00:22 -08:00
2023-11-25 02:49:43 -05:00
2024-01-08 11:11:51 -08:00
2024-01-10 17:44:36 -08:00
2024-01-08 10:57:34 -08:00
2024-01-10 10:24:49 -08:00
2024-01-10 17:44:36 -08:00