linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Ritesh Harjani (IBM) <ritesh.list@gmail.com>
To: "Darrick J. Wong" <djwong@kernel.org>
Cc: linux-ext4@vger.kernel.org, linux-xfs@vger.kernel.org,
	linux-fsdevel@vger.kernel.org, Dave Chinner <david@fromorbit.com>,
	Matthew Wilcox <willy@infradead.org>,
	Christoph Hellwig <hch@infradead.org>,
	Christian Brauner <brauner@kernel.org>,
	Ojaswin Mujoo <ojaswin@linux.ibm.com>, Jan Kara <jack@suse.cz>,
	Luis Chamberlain <mcgrof@kernel.org>
Subject: Re: [PATCH] Documentation: document the design of iomap and how to port
Date: Wed, 12 Jun 2024 12:25:47 +0530	[thread overview]
Message-ID: <871q52abv0.fsf@gmail.com> (raw)
In-Reply-To: <20240611215049.GC52987@frogsfrogsfrogs>

"Darrick J. Wong" <djwong@kernel.org> writes:

> On Tue, Jun 11, 2024 at 12:13:22PM +0530, Ritesh Harjani wrote:
>> "Darrick J. Wong" <djwong@kernel.org> writes:
>> 

<snip>
>> >> > + * ``addr`` describes the device address, in bytes.
>> >> > +
>> >> > + * ``bdev`` describes the block device for this mapping.
>> >> > +   This only needs to be set for mapped or unwritten operations.
>> >> > +
>> >> > + * ``dax_dev`` describes the DAX device for this mapping.
>> >> > +   This only needs to be set for mapped or unwritten operations, and
>> >> > +   only for a fsdax operation.
>> >> 
>> >> Looks like we can make this union (bdev and dax_dev). Since depending
>> >> upon IOMAP_DAX or not we only set either dax_dev or bdev.
>> >
>> > Separate patch. ;)
>> >
>> 
>> Yes, in a way I was trying to get an opinion from you and others on
>> whether it make sense to make bdev and dax_dev as union :)
>> 
>> Looks like this series [1] could be the reason for that. 
>> 
>> [1]: https://lore.kernel.org/all/20211129102203.2243509-1-hch@lst.de/#t
>> 
>> I also don't see any reference to dax code from fs/iomap/buffered-io.c
>> So maybe we don't need this dax.h header in this file.
>> 
>> diff --git a/fs/iomap/buffered-io.c b/fs/iomap/buffered-io.c
>> index c5802a459334..e1a6cca3cec2 100644
>> --- a/fs/iomap/buffered-io.c
>> +++ b/fs/iomap/buffered-io.c
>> @@ -10,7 +10,6 @@
>>  #include <linux/pagemap.h>
>>  #include <linux/uio.h>
>>  #include <linux/buffer_head.h>
>> -#include <linux/dax.h>
>>  #include <linux/writeback.h>
>>  #include <linux/list_sort.h>
>>  #include <linux/swap.h>
>
> Yes, given that both you and hch have mentioned it, could one of you
> send a cleanup series for that?
>

Sure, Thanks Darrick and Christoph.
I can queue this with my other work where I am improving iomap for
indirect-block mapping, so that it will be easier to get testing done on
all of this together.

-ritesh

  reply	other threads:[~2024-06-12  6:59 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-08  0:17 [PATCH] Documentation: document the design of iomap and how to port Darrick J. Wong
2024-06-09  6:36 ` Christoph Hellwig
2024-06-09 15:55   ` Darrick J. Wong
2024-06-10 14:18     ` Jan Kara
2024-06-10 21:59       ` Darrick J. Wong
2024-06-10 22:25         ` Jan Kara
2024-06-11  1:32         ` Dave Chinner
2024-06-12  0:37           ` Darrick J. Wong
2024-06-11 16:12     ` Christoph Hellwig
2024-06-11 21:43       ` Darrick J. Wong
2024-06-10  8:57 ` Ritesh Harjani
2024-06-10 23:11   ` Darrick J. Wong
2024-06-11  6:43     ` Ritesh Harjani
2024-06-11 21:50       ` Darrick J. Wong
2024-06-12  6:55         ` Ritesh Harjani [this message]
2024-06-11 10:45 ` Ritesh Harjani
2024-06-11 23:47   ` Darrick J. Wong
2024-06-12  6:37     ` Ritesh Harjani
2024-06-12 22:15       ` Darrick J. Wong
2024-06-12 13:24 ` Ritesh Harjani
2024-06-13 17:58   ` Darrick J. Wong
2024-06-14 15:01 ` Ritesh Harjani
2024-06-14 20:41   ` Darrick J. Wong

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=871q52abv0.fsf@gmail.com \
    --to=ritesh.list@gmail.com \
    --cc=brauner@kernel.org \
    --cc=david@fromorbit.com \
    --cc=djwong@kernel.org \
    --cc=hch@infradead.org \
    --cc=jack@suse.cz \
    --cc=linux-ext4@vger.kernel.org \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-xfs@vger.kernel.org \
    --cc=mcgrof@kernel.org \
    --cc=ojaswin@linux.ibm.com \
    --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;
as well as URLs for NNTP newsgroup(s).