summaryrefslogtreecommitdiffstats
path: root/contrib/llvm/lib/Analysis/CaptureTracking.cpp
diff options
context:
space:
mode:
authoravg <avg@FreeBSD.org>2013-11-25 16:31:31 +0000
committeravg <avg@FreeBSD.org>2013-11-25 16:31:31 +0000
commitdf50cf195b82cc4c361d45e9444306719ea6620e (patch)
tree77d391596b68bc90b94a9a3cc73929c875c9dc59 /contrib/llvm/lib/Analysis/CaptureTracking.cpp
parentb0519089ed0efd8b8d92d24e9d972cfdb513232a (diff)
downloadFreeBSD-src-df50cf195b82cc4c361d45e9444306719ea6620e.zip
FreeBSD-src-df50cf195b82cc4c361d45e9444306719ea6620e.tar.gz
MFC r258353: 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. Reviewed by: kib Approved by: re (gjb)
Diffstat (limited to 'contrib/llvm/lib/Analysis/CaptureTracking.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud