Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Feb 2013 20:30:20 +0000 (UTC)
From:      "Pedro F. Giffuni" <pfg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r246562 - in head/sys: fs/ext2fs ufs/ufs
Message-ID:  <201302082030.r18KUKG3032042@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201302082030.r18KUKG3032042>