From: Bob Peterson <rpeterso@redhat.com>
To: Christoph Hellwig <hch@lst.de>
Cc: Andreas Gruenbacher <agruenba@redhat.com>,
Dave Chinner <david@fromorbit.com>,
linux-fsdevel@vger.kernel.org
Subject: Re: gfs2 IOMAP_ZERO confusion
Date: Thu, 15 Mar 2018 09:20:42 -0400 (EDT) [thread overview]
Message-ID: <1505831988.11289790.1521120042544.JavaMail.zimbra@redhat.com> (raw)
In-Reply-To: <20180313082232.GA666@lst.de>
----- Original Message -----
| Hi Bob,
|
| In "GFS2: Implement iomap for block_map" you seem to have misunderstood
| the intention of the IOMAP_ZERO flag. It it set if iomap_begin is
| called for a zeroing operation, so that we don't allocate new blocks
| for holes or unwritten extents. It is not supposed to actually zero
| the blocks. Can you use some other way to communicate you internal
| zeroing request?
|
Hi Christoph,
I guess I misappropriated the flag because it seemed like a convenient
way to handle the buffer_zeronew() flag for our block_map function.
The problem is: since GFS2 is not extent-based, we have no good way to
mark groups of blocks as needing to be zeroed in the future, for purposes
like fallocate. I wish there was. There's definitely not enough bits in
our (2-bits-per-block) bitmap for that, although that would be nice.
So we can either add in a new iomap flag and do it when it's convenient,
or else handle the zeroing separately from functions that call iomap,
like in gfs2_block_map, fallocate, and so forth. Or perhaps something
that runs in the background like from a workqueue, etc.
What are your thoughts?
Regards,
Bob Peterson
Red Hat File Systems
prev parent reply other threads:[~2018-03-15 13:20 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-13 8:22 gfs2 IOMAP_ZERO confusion Christoph Hellwig
2018-03-15 13:20 ` Bob Peterson [this message]
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=1505831988.11289790.1521120042544.JavaMail.zimbra@redhat.com \
--to=rpeterso@redhat.com \
--cc=agruenba@redhat.com \
--cc=david@fromorbit.com \
--cc=hch@lst.de \
--cc=linux-fsdevel@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.