Add ability to keep memory-mapped files
By default file backed memory mappings are unlink()'ed after use. This
patch keeps the files if they already existed. We don't check for
errors on access() since we will catch them on the open().
Discovered this when doing p2pmem testing and fio kept deleting the
/dev/p2pmem0 files...
Changes since v1
Altered based on feedback from Jens to avoid using an option and
test for file existance instead.
Signed-off-by: Stephen Bates <sbates@raithlin.com>
Changed by me to use a td->flags flag, instead of adding a new
member to thread options.
Signed-off-by: Jens Axboe <axboe@kernel.dk>