From: Nikolay Borisov <nborisov@suse.com>
To: dsterba@suse.cz, bo.li.liu@oracle.com,
Goldwyn Rodrigues <rgoldwyn@suse.de>,
linux-btrfs@vger.kernel.org
Subject: Re: What is the purpose of EXTENT_PAGE_MAPPED
Date: Mon, 30 Oct 2017 16:01:43 +0200 [thread overview]
Message-ID: <d6b67eb6-8694-e4e6-d600-eea5a01d5e09@suse.com> (raw)
In-Reply-To: <20171030135500.GV3521@twin.jikos.cz>
On 30.10.2017 15:55, David Sterba wrote:
> On Mon, Oct 30, 2017 at 03:21:51PM +0200, Nikolay Borisov wrote:
>>
>>
>> On 27.10.2017 07:17, Liu Bo wrote:
>>> On Tue, Oct 24, 2017 at 05:47:11AM -0500, Goldwyn Rodrigues wrote:
>>>>
>>>> EXTENT_PAGE_MAPPED gets set in set_page_extent_mapped(), but I don't see
>>>> it being cross checked anytime. What is the purpose of setting it?
>>>
>>> Please check commit d1310b2e0cd98eb1348553e69b73827b436dca7b, it was
>>> used to differentiate page for metadata and for data, but I think
>>> currently it's just a piece of legacy code.
>>
>> Be that as it may - is there any reason why we are keeping this and can
>> it be killed off?
>
> Are we're talking about EXTENT_PAGE_PRIVATE? There's no
> EXTENT_PAGE_MAPPED. There's some control dependency on the page private
> bit and the value, so we should be careful and replace the function with
> an assert (or a BUG_ON if it's a must-not-happen state). The page->private
> points to an extent buffer, and if it's always an eb, then the
>EXTENT_PAGE_PRIVATE is unused.
I guess I meant do we actually need: set_page_extent_mapped and all the
jazz happening in it or is it a leftover (which I believe it is) ?
>
next prev parent reply other threads:[~2017-10-30 14:01 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-24 10:47 What is the purpose of EXTENT_PAGE_MAPPED Goldwyn Rodrigues
2017-10-27 4:17 ` Liu Bo
2017-10-30 13:21 ` Nikolay Borisov
2017-10-30 13:55 ` David Sterba
2017-10-30 14:01 ` Nikolay Borisov [this message]
2017-10-30 14:04 ` Goldwyn Rodrigues
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=d6b67eb6-8694-e4e6-d600-eea5a01d5e09@suse.com \
--to=nborisov@suse.com \
--cc=bo.li.liu@oracle.com \
--cc=dsterba@suse.cz \
--cc=linux-btrfs@vger.kernel.org \
--cc=rgoldwyn@suse.de \
/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).