From: Qu Wenruo <quwenruo.btrfs@gmx.com>
To: dsterba@suse.cz, Qu Wenruo <wqu@suse.com>,
linux-btrfs@vger.kernel.org, josef@toxicpanda.com
Subject: Re: [PATCH] btrfs: Use struct inode* to replace extent_io_tree::private_data
Date: Mon, 25 Feb 2019 20:17:52 +0800 [thread overview]
Message-ID: <7a8afd82-7acf-e2cc-deff-38ccf702ef2d@gmx.com> (raw)
In-Reply-To: <20190225121540.GN9874@twin.jikos.cz>
[-- Attachment #1.1: Type: text/plain, Size: 1067 bytes --]
On 2019/2/25 下午8:15, David Sterba wrote:
> On Mon, Feb 25, 2019 at 01:50:43PM +0800, Qu Wenruo wrote:
>> All users of extent_io_tree::private_data are expecting struct inode*.
>> So just use struct inode* to replace extent_io_tree::private_data, and
>> this should provide better type check.
>>
>> Signed-off-by: Qu Wenruo <wqu@suse.com>
>> struct extent_io_tree {
>> struct rb_root state;
>> - void *private_data;
>> + struct inode *inode;
>> u64 dirty_bytes;
>> int track_uptodate;
>> spinlock_t lock;
>
> So this is effectively reverting c6100a4b4e3d1650deafd ("Btrfs: replace
> tree->mapping with tree->private_data"),
That commit message doesn't explain why this is needed for btree_inode
removal.
Any idea what the extra type would be used in that case?
Thanks,
Qu
> that seems to be preparatory
> work for btree_inode removal. I haven't heared any news about that work
> for a long time though, so if this is going to land any time soon then
> we can keep it there. Otherwise, well, ack for the patch.
>
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
next prev parent reply other threads:[~2019-02-25 12:18 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-25 5:50 [PATCH] btrfs: Use struct inode* to replace extent_io_tree::private_data Qu Wenruo
2019-02-25 10:00 ` Filipe Manana
2019-02-25 11:10 ` Johannes Thumshirn
2019-02-25 12:15 ` David Sterba
2019-02-25 12:17 ` Qu Wenruo [this message]
2019-02-25 12:26 ` David Sterba
2019-02-25 15:46 ` Josef Bacik
2019-02-26 4:07 ` Qu Wenruo
2019-02-26 13:35 ` Josef Bacik
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=7a8afd82-7acf-e2cc-deff-38ccf702ef2d@gmx.com \
--to=quwenruo.btrfs@gmx.com \
--cc=dsterba@suse.cz \
--cc=josef@toxicpanda.com \
--cc=linux-btrfs@vger.kernel.org \
--cc=wqu@suse.com \
/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