diff options
| author | 2024-06-07 16:55:35 +0200 | |
|---|---|---|
| committer | 2024-06-28 09:52:05 +0200 | |
| commit | ff2c570ef7eaa9ded58e7a02dd7a68874a897508 (patch) | |
| tree | 51356b4b7d9a8dc7061ae24168fa03f21cee9080 /lib/lockref.c | |
| parent | Linux 6.10-rc1 (diff) | |
| download | linux-rng-ff2c570ef7eaa9ded58e7a02dd7a68874a897508.tar.xz linux-rng-ff2c570ef7eaa9ded58e7a02dd7a68874a897508.zip | |
path: add cleanup helper
Add a simple cleanup helper so we can cleanup struct path easily.
No need for any extra machinery. Avoid DEFINE_FREE() as it causes a
local copy of struct path to be used. Just rely on path_put() directly
called from a cleanup helper.
Link: https://lore.kernel.org/r/20240607-vfs-listmount-reverse-v1-2-7877a2bfa5e5@kernel.org
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'lib/lockref.c')
0 files changed, 0 insertions, 0 deletions
