Displaying 1 result from an estimated 1 matches for "ocfs2_check_range_for_holes".
2008 Jun 04
1
OCFS2 and direct-io writes
...SVSP)?
I actually attempted to hack the OCFS2 code a bit to allow direct-io writes to happen when the extents
had previously been allocated with a RESVSP. It only to a couple of minor changes:
file.c:ocfs2_prepare_inode_for_write()
Don't disable direct_io if file is growing.
file.c:ocfs2_check_range_for_holes()
Don't treat unwritten extents as holes.
aops.c:ocfs2_direct_IO_get_blocks()
Map unwritten extents if they exists.
With these changes, a single/local OCFS2 filesystem will allow me to write/create files using
large, direct-io. All the write requests go straight through to the s...