svn commit: r306179 - stable/10/sys/ufs/ufs
Konstantin Belousov
kib at FreeBSD.org
Thu Sep 22 10:49:43 UTC 2016
Author: kib
Date: Thu Sep 22 10:49:42 2016
New Revision: 306179
URL: https://svnweb.freebsd.org/changeset/base/306179
Log:
MFC r305597:
When extending directory inode in ufs_direnter(), adjust i_endoff.
Modified:
stable/10/sys/ufs/ufs/ufs_lookup.c
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/sys/ufs/ufs/ufs_lookup.c
==============================================================================
--- stable/10/sys/ufs/ufs/ufs_lookup.c Thu Sep 22 10:47:56 2016 (r306178)
+++ stable/10/sys/ufs/ufs/ufs_lookup.c Thu Sep 22 10:49:42 2016 (r306179)
@@ -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
mailing list