X-Git-Url: https://git.camperquake.de/gitweb.cgi?a=blobdiff_plain;f=include%2Fsys%2Fzfs_vfsops.h;h=7b70f32ea5947a8f6d36c9b15696db31d61d0a9d;hb=4b787d75c869a7f633607ecb17f3a7c482a553d2;hp=b7badeed8e58816844e63a423b1e8884600e4112;hpb=ab26409db753bb087842ab6f1af943f3386c764f;p=zfs.git diff --git a/include/sys/zfs_vfsops.h b/include/sys/zfs_vfsops.h index b7badee..7b70f32 100644 --- a/include/sys/zfs_vfsops.h +++ b/include/sys/zfs_vfsops.h @@ -113,10 +113,10 @@ typedef struct zfs_sb { /* * Allow a maximum number of links. While ZFS does not internally limit - * this most Linux filesystems do. It's probably a good idea to limit - * this to a large value until it is validated that this is safe. + * this the inode->i_nlink member is defined as an unsigned int. To be + * safe we use 2^31-1 as the limit. */ -#define ZFS_LINK_MAX 65536 +#define ZFS_LINK_MAX ((1U << 31) - 1U) /* * Normal filesystems (those not under .zfs/snapshot) have a total