Skip to content

Commit dedfae7

Browse files
mjguzikbrauner
authored andcommitted
fs: add porting notes about readlink_copy()
Calling convention has changed in ea38219 ("vfs: support caching symlink lengths in inodes") Signed-off-by: Mateusz Guzik <mjguzik@gmail.com> Link: https://patch.msgid.link/20260203130032.315177-1-mjguzik@gmail.com Signed-off-by: Christian Brauner <brauner@kernel.org>
1 parent ab89060 commit dedfae7

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

Documentation/filesystems/porting.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1334,3 +1334,13 @@ end_creating() and the parent will be unlocked precisely when necessary.
13341334

13351335
kill_litter_super() is gone; convert to DCACHE_PERSISTENT use (as all
13361336
in-tree filesystems have done).
1337+
1338+
---
1339+
1340+
**mandatory**
1341+
1342+
readlink_copy() now requires link length as the 4th argument. Said length needs
1343+
to match what strlen() would return if it was ran on the string.
1344+
1345+
However, if the string is freely accessible for the duration of inode's
1346+
lifetime, consider using inode_set_cached_link() instead.

0 commit comments

Comments
 (0)