]> git.hungrycats.org Git - linux/commit
[PATCH] NFS: Fix O_DIRECT code
authorTrond Myklebust <trond.myklebust@fys.uio.no>
Wed, 8 Oct 2003 11:51:42 +0000 (04:51 -0700)
committerLinus Torvalds <torvalds@home.osdl.org>
Wed, 8 Oct 2003 11:51:42 +0000 (04:51 -0700)
commit2d6316989f44f3949fbb85c06b16626109325c5c
tree0d4a93640cb12c0668c1e35a321d1fea65ed8919
parentcd21f96e2b6a0db102f306cf1cedc8a54c0c1205
[PATCH] NFS: Fix O_DIRECT code

  - Support synchronous directio only. Defer asynchronous directio until
    it can be made safe.
  - If read/write exits due to an error, return number of bytes read/written
    prior to occurrence of the error.
  - Make sure we mark read pages as dirty in case we're doing zero-copy tricks.
    Export set_page_dirty_lock() for use by NFS directio.
  - Ensure we revalidate stale attribute info.
fs/nfs/direct.c
mm/page-writeback.c