* why does page_cache_pipe_buf_confirm() need to check page->mapping?
@ 2016-05-19 8:05 Miklos Szeredi
0 siblings, 0 replies; only message in thread
From: Miklos Szeredi @ 2016-05-19 8:05 UTC (permalink / raw)
To: Jens Axboe
Cc: Abhijith Das, Linux-Fsdevel, linux-mm, Kernel Mailing List,
Linus Torvalds
Hi Jens,
I haven't done a great deal of research into this, but checking
page->mapping in page_cache_pipe_buf_confirm() might be bogus.
If the page is truncated *after* being spliced into the pipe, why on
earth does the buffer become invalid?
This looks to be a problem for filesystems that invalidate pages
(because the the data is possibly stale) and the pipe read returns
-ENODATA even though the data is there, it's just possibly different
from what was spliced into the pipe. But I don't think that's a
reason for throwing away that buffer and definitely not a reason to
return an error.
Thanks,
Miklos
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-05-19 8:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-19 8:05 why does page_cache_pipe_buf_confirm() need to check page->mapping? Miklos Szeredi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox