]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
When externding directory inode in ufs_direnter(), adjust i_endoff.
authorKonstantin Belousov <kib@FreeBSD.org>
Thu, 8 Sep 2016 12:07:25 +0000 (12:07 +0000)
committerKonstantin Belousov <kib@FreeBSD.org>
Thu, 8 Sep 2016 12:07:25 +0000 (12:07 +0000)
commitea16af59a11ad2bf957819f145d6a8747f233f17
tree76794e569b61e434502f5713c543058038e0dad7
parent6cb0fae25efef3f01adcef0ecebc0d687e220f87
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