set EXT2_LINK_MAX to LINK_MAX

In linux EXT4_LINK_MAX is now 64000.  We can't really do that
since i_nlink and va_nlink are signed so setting higher values
is likely to cause trouble.

This is a system limitation so set the EXT_LINK_MAX to
what the system can handle.

MFC after:	3 days
This commit is contained in:
Pedro F. Giffuni 2014-08-04 16:41:06 +00:00
parent b22b6abd34
commit 55806cca37

View File

@ -72,7 +72,7 @@ struct ext2fs_direct_2 {
/*
* Maximal count of links to a file
*/
#define EXT2_LINK_MAX 32000
#define EXT2_LINK_MAX LINK_MAX
/*
* Ext2 directory file types. Only the low 3 bits are used. The