mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-26 06:33:19 -04:00
ext4: use ext4_da_writepages() for all modes
Rename ext4_da_writepages() to ext4_writepages() and use it for all modes. We still need to iterate over all the pages in the case of data=journalling, but in the case of nodelalloc/data=ordered (which is what file systems mounted using ext3 backwards compatibility will use) this will allow us to use a much more efficient I/O submission path. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
This commit is contained in:
parent
f4afb4f4e3
commit
20970ba65d
2 changed files with 33 additions and 12 deletions
|
|
@ -281,7 +281,7 @@ DEFINE_EVENT(ext4__write_end, ext4_da_write_end,
|
|||
TP_ARGS(inode, pos, len, copied)
|
||||
);
|
||||
|
||||
TRACE_EVENT(ext4_da_writepages,
|
||||
TRACE_EVENT(ext4_writepages,
|
||||
TP_PROTO(struct inode *inode, struct writeback_control *wbc),
|
||||
|
||||
TP_ARGS(inode, wbc),
|
||||
|
|
@ -379,7 +379,7 @@ TRACE_EVENT(ext4_da_write_pages_extent,
|
|||
__entry->flags)
|
||||
);
|
||||
|
||||
TRACE_EVENT(ext4_da_writepages_result,
|
||||
TRACE_EVENT(ext4_writepages_result,
|
||||
TP_PROTO(struct inode *inode, struct writeback_control *wbc,
|
||||
int ret, int pages_written),
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue