Skip to content
Snippets Groups Projects
Commit 8de52778 authored by Al Viro's avatar Al Viro
Browse files

vfs: check i_nlink limits in vfs_{mkdir,rename_dir,link}


New field of struct super_block - ->s_max_links.  Maximal allowed
value of ->i_nlink or 0; in the latter case all checks still need
to be done in ->link/->mkdir/->rename instances.  Note that this
limit applies both to directoris and to non-directories.

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent c16fa4f2
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment