freebsd-dev/sys/cddl/contrib/opensolaris/uts/common
Andriy Gapon 3fd7f7bef7 zfs page_busy: fix the boundaries of the cleared range
This is a fix for a regression introduced in r246293.

vm_page_clear_dirty expects the range to have DEV_BSIZE aligned boundaries,
otherwise it extends them.  Thus it can happen that the whole page is
marked clean while actually having some small dirty region(s).
This commit makes the range properly aligned and ensures that only
the clean data is marked as such.

It would interesting to evaluate how much benefit clearing with DEV_BSIZE
granularity produces.  Perhaps instead we should clear the whole page
when it is completely overwritten and don't bother clearing any bits
if only a portion a page is written.

Reported by:	George Hartzell <hartzell@alerce.com>,
		Richard Todd <rmtodd@servalan.servalan.com>
Tested by:	George Hartzell <hartzell@alerce.com>,
Reviewed by:	kib
MFC after:	5 days
2013-11-19 18:43:47 +00:00
..
ctf This commit was generated by cvs2svn to compensate for changes in r179193, 2008-05-22 07:04:10 +00:00
dtrace opensolaris/uts/common/dtrace/fasttrap.c 2013-11-18 16:51:56 +00:00
fs zfs page_busy: fix the boundaries of the cleared range 2013-11-19 18:43:47 +00:00
os Finally... Import the latest open-source ZFS version - (SPA) 28. 2011-02-27 19:41:40 +00:00
sys The fasttrap ioctl used to create probes takes a variable-sized argument. 2013-11-18 03:24:50 +00:00
zmod - rename atomic.S and crc32.c to avoid collisions when linking zfs in to the kernel 2009-05-09 01:45:55 +00:00
Makefile.files MFV r247580: 2013-03-19 12:51:18 +00:00