diff options
| author | Al Viro <[email protected]> | 2025-07-12 05:41:57 +0000 |
|---|---|---|
| committer | Christian Brauner <[email protected]> | 2025-07-14 08:22:47 +0000 |
| commit | 1f531e35c146cca22dc6f4a1bc657098f146f358 (patch) | |
| tree | b70d2dd3770c2910cfabe596c365eb29a2a3052b /fs/f2fs/node.c | |
| parent | fold fs_struct->{lock,seq} into a seqlock (diff) | |
| download | kernel-1f531e35c146cca22dc6f4a1bc657098f146f358.tar.gz kernel-1f531e35c146cca22dc6f4a1bc657098f146f358.zip | |
don't bother with path_get()/path_put() in unix_open_file()
Once unix_sock ->path is set, we are guaranteed that its ->path will remain
unchanged (and pinned) until the socket is closed. OTOH, dentry_open()
does not modify the path passed to it.
IOW, there's no need to copy unix_sk(sk)->path in unix_open_file() - we
can just pass it to dentry_open() and be done with that.
Signed-off-by: Al Viro <[email protected]>
Link: https://lore.kernel.org/20250712054157.GZ1880847@ZenIV
Reviewed-by: Kuniyuki Iwashima <[email protected]>
Signed-off-by: Christian Brauner <[email protected]>
Diffstat (limited to 'fs/f2fs/node.c')
0 files changed, 0 insertions, 0 deletions
