• H
    tmpfs: support aio · bcd78e49
    Hugh Dickins 提交于
    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: NHugh Dickins <hugh@veritas.com>
    Tested-by: NLawrence 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: NAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
    bcd78e49
shmem.c 66.1 KB