Skip to content
  • Hugh Dickins's avatar
    tmpfs: support aio · bcd78e49
    Hugh Dickins authored
    
    
    We have a request for tmpfs to support the AIO interface: easily done, no
    more than replacing the old shmem_file_read by shmem_file_aio_read,
    cribbed from generic_file_aio_read.  (In 2.6.25 its write side was already
    changed to use generic_file_aio_write.)
    
    Incorporate cleanups from Andrew Morton and Harvey Harrison.
    
    Tests out fine with LTP's ltp-aiodio.sh, given hacks (not included) to
    support O_DIRECT.  tmpfs cannot honestly support O_DIRECT: its
    cache-avoiding-IO nature is at odds with direct IO-avoiding-cache.
    
    Signed-off-by: default avatarHugh Dickins <hugh@veritas.com>
    Tested-by: default avatarLawrence Greenfield <leg@google.com>
    Cc: Christoph Rohland <hans-christoph.rohland@sap.com>
    Cc: Badari Pulavarty <pbadari@us.ibm.com>
    Cc: Zach Brown <zach.brown@oracle.com>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    bcd78e49