svn commit: r246562 - in head/sys: fs/ext2fs ufs/ufs
Pedro F. Giffuni
pfg at FreeBSD.org
Fri Feb 8 20:30:20 UTC 2013
Author: pfg
Date: Fri Feb 8 20:30:19 2013
New Revision: 246562
URL: http://svnweb.freebsd.org/changeset/base/246562
Log:
Remove unused MAXSYMLINKLEN macro.
Reviewed by: mckusick
PR: kern/175794
MFC after: 1 week
Modified:
head/sys/fs/ext2fs/inode.h
head/sys/ufs/ufs/inode.h
Modified: head/sys/fs/ext2fs/inode.h
==============================================================================
--- head/sys/fs/ext2fs/inode.h Fri Feb 8 20:13:28 2013 (r246561)
+++ head/sys/fs/ext2fs/inode.h Fri Feb 8 20:30:19 2013 (r246562)
@@ -108,7 +108,6 @@ struct inode {
*/
#define i_shortlink i_db
#define i_rdev i_db[0]
-#define MAXSYMLINKLEN ((NDADDR + NIADDR) * sizeof(int32_t))
/* File permissions. */
#define IEXEC 0000100 /* Executable. */
Modified: head/sys/ufs/ufs/inode.h
==============================================================================
--- head/sys/ufs/ufs/inode.h Fri Feb 8 20:13:28 2013 (r246561)
+++ head/sys/ufs/ufs/inode.h Fri Feb 8 20:30:19 2013 (r246562)
@@ -151,10 +151,6 @@ struct inode {
(ip)->i_din2->d##field = (val); \
} while (0)
-#define MAXSYMLINKLEN(ip) \
- ((ip)->i_ump->um_fstype == UFS1) ? \
- ((NDADDR + NIADDR) * sizeof(ufs1_daddr_t)) : \
- ((NDADDR + NIADDR) * sizeof(ufs2_daddr_t))
#define SHORTLINK(ip) \
(((ip)->i_ump->um_fstype == UFS1) ? \
(caddr_t)(ip)->i_din1->di_db : (caddr_t)(ip)->i_din2->di_db)
More information about the svn-src-head
mailing list