]> err.no Git - linux-2.6/commit
ocfs2: support writing of unwritten extents
authorMark Fasheh <mark.fasheh@oracle.com>
Mon, 18 Jun 2007 18:22:56 +0000 (11:22 -0700)
committerMark Fasheh <mark.fasheh@oracle.com>
Wed, 11 Jul 2007 00:32:03 +0000 (17:32 -0700)
commitb27b7cbcf12a1bfff1ed68a73ddd7d11edc20daf
treea25a8ca272e7f0ef01987db3b3795a49e0ccb51f
parent0d172baa5586071ae0ae0c07356a378fdbedecdb
ocfs2: support writing of unwritten extents

Update the write code to detect when the user is asking to write to an
unwritten extent. Like writing to a hole, we must zero the region between
the write and the cluster boundaries. Most of the existing cluster zeroing
logic can be re-used with some additional checks for the unwritten flag on
extent records.

Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
fs/ocfs2/aops.c
fs/ocfs2/file.c
fs/ocfs2/file.h