Skip to content

Commit

Permalink
ocfs2: teach ocfs2_file_aio_write() about sparse files
Browse files Browse the repository at this point in the history
Unfortunately, ocfs2 can no longer make use of generic_file_aio_write_nlock()
because allocating writes will require zeroing of pages adjacent to the I/O
for cluster sizes greater than page size.

Implement a custom file write here, which can order page locks for zeroing.
This also has the advantage that cluster locks can easily be ordered outside
of the page locks.

Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
  • Loading branch information
Mark Fasheh committed Apr 26, 2007
1 parent 8948898 commit 9517bac
Show file tree
Hide file tree
Showing 7 changed files with 1,076 additions and 57 deletions.
Loading

0 comments on commit 9517bac

Please sign in to comment.