[PATCH v8 07/18] fs, dax: use page->mapping to warn if truncate collides with a busy page

2018-03-30 Thread Dan Williams
Catch cases where extent unmap operations encounter pages that are pinned / busy. Typically this is pinned pages that are under active dma. This warning is a canary for potential data corruption as truncated blocks could be allocated to a new file while the device is still performing i/o. Here is

[PATCH v8 07/18] fs, dax: use page->mapping to warn if truncate collides with a busy page

2018-03-30 Thread Dan Williams
Catch cases where extent unmap operations encounter pages that are pinned / busy. Typically this is pinned pages that are under active dma. This warning is a canary for potential data corruption as truncated blocks could be allocated to a new file while the device is still performing i/o. Here is