]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: Limit number of links that can be created by ext4_link()
authorTheodore Ts'o <tytso@mit.edu>
Sun, 30 Aug 2009 01:08:08 +0000 (21:08 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 30 Aug 2009 01:08:08 +0000 (21:08 -0400)
commit7573bf0d5a7dcad42882c24cbaef5f760c73a8aa
tree4479566851d82df15b0a350a3f2c3baa9009b9d4
parent035de919cbae397aa0ed1a9fc53274164981a21c
ext4: Limit number of links that can be created by ext4_link()

In ext4_link we need to check using EXT4_LINK_MAX, and not
EXT4_DIR_LINK_MAX(), since ext4_link() is creating hard links of
regular files, and not directories.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/namei.c