]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
- Always try to write one whole page at a time.
authorPawel Jakub Dawidek <pjd@FreeBSD.org>
Thu, 26 Apr 2007 12:58:17 +0000 (12:58 +0000)
committerPawel Jakub Dawidek <pjd@FreeBSD.org>
Thu, 26 Apr 2007 12:58:17 +0000 (12:58 +0000)
commit171c4b21e2a23f162c9f1665e08117d91696cf21
treea04e4bf64ecbb27bb9a3efa83fad3fd273ea2d9d
parentcaa93cc3a0d845e6211194c07deebb741c328c8c
- Always try to write one whole page at a time.
- vm_page_undirty() is enough (instead of vm_page_set_validclean()), but it has
  to be called before we write the data in case someone makes page dirty after
  our write, but before our vm_page_undirty() call.
- Always dmu_write, not matter if uiomove() succeeded, because it could
  partially be ok and we would lose some changes.

All good ideas from: ups
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c
sys/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c