search for: ocfs2_prepare_inode_for_write

Displaying 9 results from an estimated 9 matches for "ocfs2_prepare_inode_for_write".

2008 Jun 04
1
OCFS2 and direct-io writes
...y? Would it easier if the data blocks had already been allocated as unwritten extents (using RESVSP)? 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 wr...
2023 May 20
3
[PATCH v21 22/30] ocfs2: Provide a splice-read stub
...,8 @@ DEFINE_OCFS2_FILE_OPS(ocfs2_file_splice_write); DEFINE_OCFS2_FILE_OPS(ocfs2_file_read_iter); +DEFINE_OCFS2_FILE_OPS(ocfs2_file_splice_read); + DEFINE_OCFS2_ULL_ULL_ULL_EVENT(ocfs2_truncate_file); DEFINE_OCFS2_ULL_ULL_EVENT(ocfs2_truncate_file_error); @@ -1470,6 +1472,7 @@ TRACE_EVENT(ocfs2_prepare_inode_for_write, ); DEFINE_OCFS2_INT_EVENT(generic_file_read_iter_ret); +DEFINE_OCFS2_INT_EVENT(filemap_splice_read_ret); /* End of trace events for fs/ocfs2/file.c. */
2010 Aug 19
0
[GIT PULL] ocfs2 changes for 2.6.36, part 2.
...ace log for orphan scan. ocfs2: Remove obscure error handling in direct_write. ocfs2: Remove unused old_id in ocfs2_commit_cache. ocfs2: Remove obsolete comments before ocfs2_start_trans. ocfs2: pass struct file* to ocfs2_write_begin_nolock. ocfs2: pass struct file* to ocfs2_prepare_inode_for_write. ocfs2: Add struct file to ocfs2_refcount_cow. ocfs2: Add readahead support for CoW. ocfs2: Add readhead during CoW. Tristan Ye (1): Ocfs2: Add new OCFS2_IOC_INFO ioctl for ocfs2 v8. fs/ext3/super.c | 4 +- fs/ext4/super.c | 8 +- fs/jbd2/journal.c...
2023 May 19
0
[PATCH v20 19/32] ocfs2: Provide a splice-read stub
...,8 @@ DEFINE_OCFS2_FILE_OPS(ocfs2_file_splice_write); DEFINE_OCFS2_FILE_OPS(ocfs2_file_read_iter); +DEFINE_OCFS2_FILE_OPS(ocfs2_file_splice_read); + DEFINE_OCFS2_ULL_ULL_ULL_EVENT(ocfs2_truncate_file); DEFINE_OCFS2_ULL_ULL_EVENT(ocfs2_truncate_file_error); @@ -1470,6 +1472,7 @@ TRACE_EVENT(ocfs2_prepare_inode_for_write, ); DEFINE_OCFS2_INT_EVENT(generic_file_read_iter_ret); +DEFINE_OCFS2_INT_EVENT(filemap_splice_read_ret); /* End of trace events for fs/ocfs2/file.c. */
2010 Oct 22
0
[GIT PULL] ocfs2 changes for 2.6.37
...p/down events ocfs2/cluster: Show per region heartbeat elapsed time ocfs2/cluster: Bump up dlm protocol to version 1.1 ocfs2/cluster: Release debugfs file elapsed_time_in_ms Tao Ma (10): ocfs2: pass struct file* to ocfs2_write_begin_nolock. ocfs2: pass struct file* to ocfs2_prepare_inode_for_write. ocfs2: Add struct file to ocfs2_refcount_cow. ocfs2: Add readahead support for CoW. ocfs2: Add readhead during CoW. ocfs2: Add some trace log for orphan scan. ocfs2: Remove obscure error handling in direct_write. ocfs2: Remove unused old_id in ocfs2_commit_cache...
2013 Jul 25
0
[PATCH V8 21/33] ocfs2: add support for read_iter and write_iter
..._write_iter); DEFINE_OCFS2_FILE_OPS(ocfs2_file_splice_write); DEFINE_OCFS2_FILE_OPS(ocfs2_file_splice_read); -DEFINE_OCFS2_FILE_OPS(ocfs2_file_aio_read); +DEFINE_OCFS2_FILE_OPS(ocfs2_file_read_iter); DEFINE_OCFS2_ULL_ULL_ULL_EVENT(ocfs2_truncate_file); @@ -1474,7 +1474,7 @@ TRACE_EVENT(ocfs2_prepare_inode_for_write, __entry->direct_io, __entry->has_refcount) ); -DEFINE_OCFS2_INT_EVENT(generic_file_aio_read_ret); +DEFINE_OCFS2_INT_EVENT(generic_file_read_iter_ret); /* End of trace events for fs/ocfs2/file.c. */ -- 1.8.3.4
2013 Jan 09
0
[PATCH V5 19/30] ocfs2: add support for read_iter, write_iter, and direct_IO_bvec
..._write_iter); DEFINE_OCFS2_FILE_OPS(ocfs2_file_splice_write); DEFINE_OCFS2_FILE_OPS(ocfs2_file_splice_read); -DEFINE_OCFS2_FILE_OPS(ocfs2_file_aio_read); +DEFINE_OCFS2_FILE_OPS(ocfs2_file_read_iter); DEFINE_OCFS2_ULL_ULL_ULL_EVENT(ocfs2_truncate_file); @@ -1474,7 +1474,7 @@ TRACE_EVENT(ocfs2_prepare_inode_for_write, __entry->direct_io, __entry->has_refcount) ); -DEFINE_OCFS2_INT_EVENT(generic_file_aio_read_ret); +DEFINE_OCFS2_INT_EVENT(generic_file_read_iter_ret); /* End of trace events for fs/ocfs2/file.c. */ -- 1.8.1
2010 Oct 09
2
[PATCH 1/2] Ocfs2: Add a mount option "coherency=*" for O_DIRECT writes.
Currently, default behavior of O_DIRECT writes was allowing concurrent writing among nodes, no cluster coherency guaranteed (no EX locks was taken), it hurts buffered reads on other nodes by reading stale data from cache. The new mount option introduce a chance to choose two different behaviors for O_DIRECT writes: * coherency=full, as the default value, will disallow concurrent
2010 Nov 19
5
[PATCH 1/1] Ocfs2: Teach 'coherency=full' O_DIRECT writes to correctly up_read i_alloc_sem.
...set_coherency(iocb); } + /* + * Concurrent-allowed odirect writes was able to up_read i_alloc_sem + * correctly, we therefore don't need this extra and tricky bit. + */ + if (direct_io && !full_coherency) + ocfs2_iocb_clear_coherency(iocb); + can_do_direct = direct_io; ret = ocfs2_prepare_inode_for_write(file, ppos, iocb->ki_left, appending, -- 1.5.5