Skip to content

Commit d2d3dd5

Browse files
foxhlchenJonathan Corbet
authored andcommitted
docs: path-lookup: Add macro name to symlink limit description
Add macro name MAXSYMLINKS to the symlink limit description, so that it is consistent with path name length description above. Signed-off-by: Fox Chen <foxhlchen@gmail.com> Reviewed-by: NeilBrown <neilb@suse.de> Link: https://lore.kernel.org/r/20210527091618.287093-7-foxhlchen@gmail.com Signed-off-by: Jonathan Corbet <corbet@lwn.net>
1 parent 34ef75e commit d2d3dd5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Documentation/filesystems/path-lookup.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -992,8 +992,8 @@ is 4096. There are a number of reasons for this limit; not letting the
992992
kernel spend too much time on just one path is one of them. With
993993
symbolic links you can effectively generate much longer paths so some
994994
sort of limit is needed for the same reason. Linux imposes a limit of
995-
at most 40 symlinks in any one path lookup. It previously imposed a
996-
further limit of eight on the maximum depth of recursion, but that was
995+
at most 40 (MAXSYMLINKS) symlinks in any one path lookup. It previously imposed
996+
a further limit of eight on the maximum depth of recursion, but that was
997997
raised to 40 when a separate stack was implemented, so there is now
998998
just the one limit.
999999

0 commit comments

Comments
 (0)