Skip to content

Commit dcb2cb1

Browse files
ebiggersAl Viro
authored andcommitted
Documentation/filesystems/vfs.txt: document how ->i_link works
Signed-off-by: Eric Biggers <[email protected]> Signed-off-by: Al Viro <[email protected]>
1 parent c59a899 commit dcb2cb1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Documentation/filesystems/vfs.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,12 @@ otherwise noted.
463463
argument. If request can't be handled without leaving RCU mode,
464464
have it return ERR_PTR(-ECHILD).
465465

466+
If the filesystem stores the symlink target in ->i_link, the
467+
VFS may use it directly without calling ->get_link(); however,
468+
->get_link() must still be provided. ->i_link must not be
469+
freed until after an RCU grace period. Writing to ->i_link
470+
post-iget() time requires a 'release' memory barrier.
471+
466472
readlink: this is now just an override for use by readlink(2) for the
467473
cases when ->get_link uses nd_jump_link() or object is not in
468474
fact a symlink. Normally filesystems should only implement

0 commit comments

Comments
 (0)