Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Sep 2014 19:10:32 +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: r272126 - head/sys/gnu/fs/reiserfs
Message-ID:  <201409251910.s8PJAWRt040225@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pfg
Date: Thu Sep 25 19:10:32 2014
New Revision: 272126
URL: http://svnweb.freebsd.org/changeset/base/272126

Log:
  reiserfs: Use signed i_nlink
  
  Unlike Linux, FreeBSD's kernel doesn't like unsigned file link
  count. This is consistent with our ext2fs implementation.
  
  MFC after:	1 month

Modified:
  head/sys/gnu/fs/reiserfs/reiserfs_fs_i.h

Modified: head/sys/gnu/fs/reiserfs/reiserfs_fs_i.h
==============================================================================
--- head/sys/gnu/fs/reiserfs/reiserfs_fs_i.h	Thu Sep 25 19:08:06 2014	(r272125)
+++ head/sys/gnu/fs/reiserfs/reiserfs_fs_i.h	Thu Sep 25 19:10:32 2014	(r272126)
@@ -59,7 +59,7 @@ struct reiserfs_node {
 						 flags read from sd_attrs. */
 
 	uint16_t	 i_mode;              /* IFMT, permissions. */
-	uint16_t	 i_nlink;             /* File link count. */
+	int16_t		 i_nlink;             /* File link count. */
 	uint64_t	 i_size;              /* File byte count. */
 	uint32_t	 i_bytes;
 	uid_t		 i_uid;               /* File owner. */



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