Project

General

Profile

Bug #2691 » pc_node.diff

Hans Rosenfeld, 2012-05-06 07:55 PM

View differences:

usr/src/uts/common/sys/fs/pc_node.h Thu May 03 15:56:05 2012 +0200 → usr/src/uts/common/sys/fs/pc_node.h Sun May 06 21:43:09 2012 +0200
81 81
 * Make a unique integer for a file
82 82
 */
83 83
#define	pc_makenodeid(BN, OFF, ATTR, SCLUSTER, ENTPS) \
84
	(ino_t)((ATTR) & PCA_DIR ? \
85
		(uint32_t)(-(SCLUSTER) - 1) : \
84
	(ino_t)(uint32_t)((ATTR) & PCA_DIR ?	      \
85
		(-(SCLUSTER) - 1) : \
86 86
		((BN) * (ENTPS)) + ((OFF) / sizeof (struct pcdir)))
87 87

  
88 88
#define	NPCHASH 1
    (1-1/1)