All of lore.kernel.org
 help / color / mirror / Atom feed
From: Christoph Hellwig <hch@infradead.org>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] [PATCH v2 2/3] GFS2: Implement iomap for block_map
Date: Fri, 4 Nov 2016 06:44:42 -0700	[thread overview]
Message-ID: <20161104134442.GA13429@infradead.org> (raw)
In-Reply-To: <581B074B.4000301@redhat.com>

> > > That wasn't quite what I was getting at... we have two sets of
> > > flags. IOMAP_ZERO, IOMAP_WRITE and IOMAP_REPORT form one set that
> > > are passed as an argument to ->iomap_begin() and ->iomap_end()

They actually are the type of operation we perform, so maybe we should
rename them to "op" or similar.

> For GFS2 then we want to use the IOMAP_* flags as they are at the moment,
> but for the function that maps back from iomap to gfs2_block_map() we'd need
> to add a IOMAP_F_ZEROED or something like that from which to set the
> BH_zeronew() flag, which is used as both a request and result flag for the
> zeroing operation. That flag would very likely go away in due course when
> the final iomap migration is done for GFS2, so would just be a temporary
> thing in the mean time.

That would be the existing IOMAP_F_NEW I guess?

> I also wondered whether it would be possible to write a generic
> implementation of SEEK_HOLE/SEEK_END for iomap supporting filesystems at the
> VFS level. That would get GFS2 support for those two operations and be a
> nice clean up too. I've added an item on our todo list for that, but it may
> be a little while before we get around to it,

Yes, that should be doable.  Would be great if you could look at it,
otherwise I'll add it to my todo list.



  reply	other threads:[~2016-11-04 13:44 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-28 19:29 [Cluster-devel] [PATCH v2 0/3] Implement iomap for fiemap in GFS2 Bob Peterson
2016-10-28 19:29 ` [Cluster-devel] [PATCH v2 1/3] GFS2: Make height info part of metapath Bob Peterson
2016-10-28 19:29 ` [Cluster-devel] [PATCH v2 2/3] GFS2: Implement iomap for block_map Bob Peterson
2016-10-29  9:24   ` Steven Whitehouse
2016-10-31 12:07     ` Bob Peterson
2016-10-31 20:07     ` Dave Chinner
2016-11-02  9:37       ` Steven Whitehouse
2016-11-02 21:01         ` Dave Chinner
2016-11-03  9:45           ` Steven Whitehouse
2016-11-04 13:44             ` Christoph Hellwig [this message]
2016-11-07 12:03               ` Steven Whitehouse
2016-10-28 19:29 ` [Cluster-devel] [PATCH v2 3/3] GFS2: Switch fiemap implementation to use iomap Bob Peterson
2016-10-29  9:33   ` Steven Whitehouse

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=20161104134442.GA13429@infradead.org \
    --to=hch@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 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.