From: David Howells <dhowells@redhat.com>
To: linux-fsdevel@vger.kernel.org
Cc: dhowells@redhat.com, jlayton@kernel.org,
Matthew Wilcox <willy@infradead.org>,
Christoph Hellwig <hch@infradead.org>,
Linus Torvalds <torvalds@linux-foundation.org>,
dchinner@redhat.com, linux-block@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Could it be made possible to offer "supplementary" data to a DIO write ?
Date: Thu, 05 Aug 2021 11:19:17 +0100 [thread overview]
Message-ID: <1017390.1628158757@warthog.procyon.org.uk> (raw)
Hi,
I'm working on network filesystem write helpers to go with the read helpers,
and I see situations where I want to write a few bytes to the cache, but have
more available that could be written also if it would allow the
filesystem/blockdev to optimise its layout.
Say, for example, I need to write a 3-byte change from a page, where that page
is part of a 256K sequence in the pagecache. Currently, I have to round the
3-bytes out to DIO size/alignment, but I could say to the API, for example,
"here's a 256K iterator - I need bytes 225-227 written, but you can write more
if you want to"?
Would it be useful/feasible to have some sort of interface that allows the
offer to be made?
David
next reply other threads:[~2021-08-05 10:19 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-05 10:19 David Howells [this message]
2021-08-05 12:37 ` Could it be made possible to offer "supplementary" data to a DIO write ? Matthew Wilcox
2021-08-05 13:07 ` David Howells
2021-08-05 13:35 ` Matthew Wilcox
2021-08-05 14:38 ` David Howells
2021-08-05 15:06 ` Matthew Wilcox
2021-08-05 15:38 ` David Howells
2021-08-05 17:45 ` Adam Borowski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1017390.1628158757@warthog.procyon.org.uk \
--to=dhowells@redhat.com \
--cc=dchinner@redhat.com \
--cc=hch@infradead.org \
--cc=jlayton@kernel.org \
--cc=linux-block@vger.kernel.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@linux-foundation.org \
--cc=willy@infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox