diff options
author | pfg <pfg@FreeBSD.org> | 2013-02-05 03:01:04 +0000 |
---|---|---|
committer | pfg <pfg@FreeBSD.org> | 2013-02-05 03:01:04 +0000 |
commit | affc90ea665a0feb83f94f917607b09e1f6e7715 (patch) | |
tree | d67e8a6007abde3b910d9bb5eb1fdeb4a88495ea /sys/fs/ext2fs | |
parent | f48b0cf979342ef25249b2404b5870feaa101416 (diff) | |
download | FreeBSD-src-affc90ea665a0feb83f94f917607b09e1f6e7715.zip FreeBSD-src-affc90ea665a0feb83f94f917607b09e1f6e7715.tar.gz |
ext2fs: Use EXT2_LINK_MAX instead of LINK_MAX
Submitted by: Christoph Mallon
MFC after: 2 weeks
Diffstat (limited to 'sys/fs/ext2fs')
-rw-r--r-- | sys/fs/ext2fs/ext2_vnops.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/fs/ext2fs/ext2_vnops.c b/sys/fs/ext2fs/ext2_vnops.c index 4f8f6a9..7cfc64b 100644 --- a/sys/fs/ext2fs/ext2_vnops.c +++ b/sys/fs/ext2fs/ext2_vnops.c @@ -730,7 +730,7 @@ ext2_link(ap) goto out; } ip = VTOI(vp); - if ((nlink_t)ip->i_nlink >= LINK_MAX) { + if ((nlink_t)ip->i_nlink >= EXT2_LINK_MAX) { error = EMLINK; goto out; } @@ -841,7 +841,7 @@ abortit: goto abortit; dp = VTOI(fdvp); ip = VTOI(fvp); - if (ip->i_nlink >= LINK_MAX) { + if (ip->i_nlink >= EXT2_LINK_MAX) { VOP_UNLOCK(fvp, 0); error = EMLINK; goto abortit; @@ -939,7 +939,7 @@ abortit: * parent we don't fool with the link count. */ if (doingdirectory && newparent) { - if ((nlink_t)dp->i_nlink >= LINK_MAX) { + if ((nlink_t)dp->i_nlink >= EXT2_LINK_MAX) { error = EMLINK; goto bad; } @@ -1160,7 +1160,7 @@ ext2_mkdir(ap) panic("ext2_mkdir: no name"); #endif dp = VTOI(dvp); - if ((nlink_t)dp->i_nlink >= LINK_MAX) { + if ((nlink_t)dp->i_nlink >= EXT2_LINK_MAX) { error = EMLINK; goto out; } @@ -1524,7 +1524,7 @@ ext2_pathconf(ap) switch (ap->a_name) { case _PC_LINK_MAX: - *ap->a_retval = LINK_MAX; + *ap->a_retval = EXT2_LINK_MAX; return (0); case _PC_NAME_MAX: *ap->a_retval = NAME_MAX; |