svn commit: r306169 - stable/11/sys/ufs/ufs

Konstantin Belousov kib at FreeBSD.org
Thu Sep 22 09:06:02 UTC 2016


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 &


More information about the svn-src-stable-11 mailing list