When externding directory inode in ufs_direnter(), adjust i_endoff.
authorkib <kib@FreeBSD.org>
Thu, 8 Sep 2016 12:07:25 +0000 (12:07 +0000)
committerkib <kib@FreeBSD.org>
Thu, 8 Sep 2016 12:07:25 +0000 (12:07 +0000)
commit666d76bef360796f5a43b9f808996b54fc237e71
tree76794e569b61e434502f5713c543058038e0dad7
parent814ebf644d66a60e6c797d0a8ab356573d20a47d
When externding directory inode in ufs_direnter(), adjust i_endoff.

This change is formally not needed, since i_endoff not used in all
code paths after the call to ufs_direnter(), and i_endoff is
recalculated by the next lookup.  But having the value correct makes
the reasoning about code simpler.

Reported and tested by: pho
Reviewed by: mckusick
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks
sys/ufs/ufs/ufs_lookup.c