| To: | Bob Liu <bob.liu@xxxxxxxxxx> |
|---|---|
| Subject: | Re: [PATCH v6 2/7] dax: support dirty DAX entries in radix tree |
| From: | Dan Williams <dan.j.williams@xxxxxxxxx> |
| Date: | Wed, 30 Dec 2015 12:39:04 -0800 |
| Cc: | Ross Zwisler <ross.zwisler@xxxxxxxxxxxxxxx>, "linux-kernel@xxxxxxxxxxxxxxx" <linux-kernel@xxxxxxxxxxxxxxx>, "H. Peter Anvin" <hpa@xxxxxxxxx>, "J. Bruce Fields" <bfields@xxxxxxxxxxxx>, "Theodore Ts'o" <tytso@xxxxxxx>, Alexander Viro <viro@xxxxxxxxxxxxxxxxxx>, Andreas Dilger <adilger.kernel@xxxxxxxxx>, Dave Chinner <david@xxxxxxxxxxxxx>, Ingo Molnar <mingo@xxxxxxxxxx>, Jan Kara <jack@xxxxxxxx>, Jeff Layton <jlayton@xxxxxxxxxxxxxxx>, Matthew Wilcox <willy@xxxxxxxxxxxxxxx>, Thomas Gleixner <tglx@xxxxxxxxxxxxx>, linux-ext4 <linux-ext4@xxxxxxxxxxxxxxx>, linux-fsdevel <linux-fsdevel@xxxxxxxxxxxxxxx>, Linux MM <linux-mm@xxxxxxxxx>, linux-nvdimm <linux-nvdimm@xxxxxxxxxxx>, X86 ML <x86@xxxxxxxxxx>, XFS Developers <xfs@xxxxxxxxxxx>, Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>, Matthew Wilcox <matthew.r.wilcox@xxxxxxxxx>, Dave Hansen <dave.hansen@xxxxxxxxxxxxxxx> |
| Delivered-to: | xfs@xxxxxxxxxxx |
| Dkim-signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=THzqXxwLElI43gHxLWTqXJpJ37VgeKEQQW/+gB9gKGU=; b=h9aXIjKp8v6Kon3bPbxSdhwgzJIGOX84sIt1w9Et8dNk2t9FUxg2hpiHqtoc2db+WZ 9obeOgP755KaLiEpxu4c0d4s3bI1nee9f9d9hSNiQU3ISi+JUxRMLJ5hfg4zT8L/zIwp Lgmv+opXoySIjBQHbVcpgfS97OfYLY2u8K1vYAiGFh/0UuVOACNxwKrmjoRXOZBoIz3F 5pgvO6ysfeKD/dQy66pqr9OzXEtu8UJREOvTeNOqqcV2NtLqAzSi1oLRgjMjR5/MNQo8 rq1LvvqTFg1jCUPrGBKtziuUtmxj6dmJ4IG4RF20iQ1YuAYMEdumoXKru78SgYfXNqAL YijQ== |
| In-reply-to: | <56838FA3.5030909@xxxxxxxxxx> |
| References: | <1450899560-26708-1-git-send-email-ross.zwisler@xxxxxxxxxxxxxxx> <1450899560-26708-3-git-send-email-ross.zwisler@xxxxxxxxxxxxxxx> <56838FA3.5030909@xxxxxxxxxx> |
On Wed, Dec 30, 2015 at 12:02 AM, Bob Liu <bob.liu@xxxxxxxxxx> wrote: > Hi Ross, > > On 12/24/2015 03:39 AM, Ross Zwisler wrote: >> Add support for tracking dirty DAX entries in the struct address_space >> radix tree. This tree is already used for dirty page writeback, and it >> already supports the use of exceptional (non struct page*) entries. >> >> In order to properly track dirty DAX pages we will insert new exceptional >> entries into the radix tree that represent dirty DAX PTE or PMD pages. > > I may get it wrong, but there is "struct page" for persistent memory after > "[PATCH v4 00/18]get_user_pages() for dax pte and pmd mappings". > So why not just add "struct page" to radix tree directly just like normal > page cache? > > Then we don't need to deal with any exceptional entries and special writeback. That "struct page" is optional and fsync/msync needs to operate in its absence. |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH v6 2/7] dax: support dirty DAX entries in radix tree, Bob Liu |
|---|---|
| Next by Date: | Re: [PATCH v6 2/7] dax: support dirty DAX entries in radix tree, Bob Liu |
| Previous by Thread: | Re: [PATCH v6 2/7] dax: support dirty DAX entries in radix tree, Bob Liu |
| Next by Thread: | Re: [PATCH v6 2/7] dax: support dirty DAX entries in radix tree, Bob Liu |
| Indexes: | [Date] [Thread] [Top] [All Lists] |