Unverified Commit dedfae78 authored by Mateusz Guzik's avatar Mateusz Guzik Committed by Christian Brauner
Browse files

fs: add porting notes about readlink_copy()



Calling convention has changed in  ea382199 ("vfs: support caching symlink lengths in inodes")

Signed-off-by: default avatarMateusz Guzik <mjguzik@gmail.com>
Link: https://patch.msgid.link/20260203130032.315177-1-mjguzik@gmail.com


Signed-off-by: default avatarChristian Brauner <brauner@kernel.org>
parent ab89060f
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -1334,3 +1334,13 @@ end_creating() and the parent will be unlocked precisely when necessary.

kill_litter_super() is gone; convert to DCACHE_PERSISTENT use (as all
in-tree filesystems have done).

---

**mandatory**

readlink_copy() now requires link length as the 4th argument. Said length needs
to match what strlen() would return if it was ran on the string.

However, if the string is freely accessible for the duration of inode's
lifetime, consider using inode_set_cached_link() instead.