Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Aug 2012 22:18:25 +0000 (UTC)
From:      Attilio Rao <attilio@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r239926 - projects/fuse/sys/fs/fuse
Message-ID:  <201208302218.q7UMIP0h023204@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: attilio
Date: Thu Aug 30 22:18:25 2012
New Revision: 239926
URL: http://svn.freebsd.org/changeset/base/239926

Log:
  There is no need to bump nlookup when links are created.
  This can, instead, bring to miscalculation in nlookup counters which
  will dump ntfs.
  
  In collabouration with:	pho

Modified:
  projects/fuse/sys/fs/fuse/fuse_vnops.c

Modified: projects/fuse/sys/fs/fuse/fuse_vnops.c
==============================================================================
--- projects/fuse/sys/fs/fuse/fuse_vnops.c	Thu Aug 30 22:15:51 2012	(r239925)
+++ projects/fuse/sys/fs/fuse/fuse_vnops.c	Thu Aug 30 22:18:25 2012	(r239926)
@@ -636,9 +636,6 @@ fuse_vnop_link(struct vop_link_args *ap)
 	fuse_invalidate_attr(tdvp);
 	fuse_invalidate_attr(vp);
 
-	if (err == 0) {
-		VTOFUD(vp)->nlookup++;
-	}
 out:
 	fdisp_destroy(&fdi);
 	return err;



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