From: Al Viro Date: Mon, 6 Feb 2012 17:45:27 +0000 (-0500) Subject: vfs: check i_nlink limits in vfs_{mkdir,rename_dir,link} X-Git-Tag: v3.4-rc1~163^2~63 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8de52778798fe39660a8d6b26f290e0c93202761;p=pandora-kernel.git 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: Al Viro --- Reading git-diff-tree failed