Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Sep 2016 09:06:01 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r306169 - stable/11/sys/ufs/ufs
Message-ID:  <201609220906.u8M961U0015605@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Thu Sep 22 09:06:01 2016
New Revision: 306169
URL: https://svnweb.freebsd.org/changeset/base/306169

Log:
  MFC r305597:
  When extending directory inode in ufs_direnter(), adjust i_endoff.

Modified:
  stable/11/sys/ufs/ufs/ufs_lookup.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/ufs/ufs/ufs_lookup.c
==============================================================================
--- stable/11/sys/ufs/ufs/ufs_lookup.c	Thu Sep 22 09:04:05 2016	(r306168)
+++ stable/11/sys/ufs/ufs/ufs_lookup.c	Thu Sep 22 09:06:01 2016	(r306169)
@@ -908,6 +908,7 @@ ufs_direnter(dvp, tvp, dirp, cnp, newdir
 		}
 		dp->i_size = dp->i_offset + DIRBLKSIZ;
 		DIP_SET(dp, i_size, dp->i_size);
+		dp->i_endoff = dp->i_size;
 		dp->i_flag |= IN_CHANGE | IN_UPDATE;
 		dirp->d_reclen = DIRBLKSIZ;
 		blkoff = dp->i_offset &



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