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 &
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to