diff options
author | Brian Foster <bfoster@redhat.com> | 2023-04-03 08:24:51 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-05-13 00:22:30 -0400 |
commit | d6d8ad8bc799e92a7d10f0726a0935f9a69ccec4 (patch) | |
tree | 2726cd56e3bafcc910656d4ec0599811ddeff5f6 /include/linux/iomap.h | |
parent | 01f608f3ea6dde2ba02acd8e5dd1d0215840b168 (diff) |
iomap: add nosubmit flag to skip data I/O on iomap mapping
Implement a quick and dirty hack to skip data I/O submission on a
specified mapping. The iomap layer will still perform every step up
through constructing the bio as if it will be submitted, but instead
invokes completion on the bio directly from submit context. The
purpose of this is to facilitate filesystem metadata performance
testing without the overhead of actual data I/O.
Note that this may be dangerous in current form in that folios are
not explicitly zeroed where they otherwise wouldn't be, so whatever
previous data exists in a folio prior to being added to a read bio
is mapped into pagecache for the file.
Signed-off-by: Brian Foster <bfoster@redhat.com>
Diffstat (limited to 'include/linux/iomap.h')
-rw-r--r-- | include/linux/iomap.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/iomap.h b/include/linux/iomap.h index 0f8123504e5e..bc3cdaa444df 100644 --- a/include/linux/iomap.h +++ b/include/linux/iomap.h @@ -60,6 +60,7 @@ struct vm_fault; #define IOMAP_F_MERGED (1U << 3) #define IOMAP_F_BUFFER_HEAD (1U << 4) #define IOMAP_F_XATTR (1U << 5) +#define IOMAP_F_NOSUBMIT (1U << 6) /* * Flags set by the core iomap code during operations: |