linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* difference between xip and o_direct
@ 2013-12-05 22:17 jon ernst
  2013-12-05 23:51 ` Theodore Ts'o
  0 siblings, 1 reply; 2+ messages in thread
From: jon ernst @ 2013-12-05 22:17 UTC (permalink / raw)
  To: linux-fsdevel

Hi,
I am trying to understand difference between xip and o_direct.

For XIP, document xip.txt says
"instead of keeping
data in the page cache, the need to have a page cache copy is eliminated
completely. With execute-in-place, read&write type operations are performed
directly from/to the memory backed storage device."

For O_Direct,

" File I/O is done directly to/from user-
space buffers.  " from manual of open(2)

So, are those 2 trying to do the same thing ? The difference I can
tell is, XIP option can be used when mounting fs. O_Direct is used in
open system-call.
Can anybody kindly teach me what are other differences?

thank you!

Jon

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-12-06  2:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-05 22:17 difference between xip and o_direct jon ernst
2013-12-05 23:51 ` Theodore Ts'o

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).