vfs: check i_nlink limits in vfs_{mkdir,rename_dir,link}
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 6 Feb 2012 17:45:27 +0000 (12:45 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 21 Mar 2012 01:29:32 +0000 (21:29 -0400)
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: Al Viro <viro@zeniv.linux.org.uk>

No differences found