diff options
| author | Mike Rapoport (Microsoft) <rppt@kernel.org> | 2026-05-23 20:54:20 +0300 |
|---|---|---|
| committer | Christian Brauner <brauner@kernel.org> | 2026-05-27 16:12:23 +0300 |
| commit | 02d7d892d26ebbcbc542b9b914522f713ce1735b (patch) | |
| tree | 49febe63682e69596b4b7bad9b70593b57e1b8d2 /include/linux/debugobjects.h | |
| parent | 06040e75202d7f4fb6aa8f8daf3ffe5aa3e1c9da (diff) | |
| download | linux-02d7d892d26ebbcbc542b9b914522f713ce1735b.tar.xz | |
libfs: simple_transaction_get(): replace get_zeroed_page() with kzalloc()
simple_transaction_get() allocates memory with get_zeroed_page(). That
memory is used as a file local buffer that is accessed using
copy_from_user() and simple_read_from_buffer().
kmalloc() is a better API for such use and it also provides better
scalability and more debugging possibilities.
Replace use of get_zeroed_page() with kzalloc().
Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org>
Link: https://patch.msgid.link/20260523-b4-fs-v1-8-275e36a83f0e@kernel.org
Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions
