Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1182751
| Path | csiph.com!aioe.org!news.lightlink.com!eternal-september.org!feeder.eternal-september.org!weretis.net!feeder1.news.weretis.net!newsfeed.CARNet.hr!news.spin.it!bofh.it!news.nic.it!robomod |
|---|---|
| From | Boaz Harrosh <boaz@plexistor.com> |
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] fs: dax: do not build on ARC or SH |
| Date | Mon, 13 Jul 2015 14:00:03 +0200 |
| Message-ID | <pLKyT-4yB-29@gated-at.bofh.it> (permalink) |
| References | <pLIGK-3rw-19@gated-at.bofh.it> |
| X-Original-To | Geert Uytterhoeven <geert+renesas@glider.be>, Matthew Wilcox <willy@linux.intel.com> |
| X-Google-Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=EmG2dneZ40Oyp91yTv4tQiIk5eBpcoN0/0a1mAWMDYQ=; b=jf79NUOgiw6WQ64keENthtKVnObu5w6S1VbcjJdvH7kjxSGufAk6z2O1WZVWwCFGF6 7aA/NM0xs35FYVL1GraEdT4X0u4vczr249vmMVvPYaeHUoN1roARl5fA8xu9wpmuuRPR VwZEhBSvGXsZugEX3tZqgBYXN4zIT6jxMkh1yC4AVAq+yO+w/RSTCVnzmP4qM6vXwY8e GT1aZ+m9zYJy2kA4xKmn476qrliC/Jv1jE61Gl8QhQkIsAHBXb3+/cqvTXwGVbnbc7kr IulkgpapIiSmj8DHGL1D/7nOz80Xu9keUEk61oCUHXCg93slT5NaWYhVpM/IyR1xhRw0 HfpQ== |
| X-Gm-Message-State | ALoCoQkJ9ilVXSe02jYswcwTpr22oQmS+1eXj5bs5kksGPxCSkmvUYZzAYM3kqs0pTMFIUPGAabT |
| X-Received | by 10.180.94.168 with SMTP id dd8mr22412779wib.76.1436788632808; Mon, 13 Jul 2015 04:57:12 -0700 (PDT) |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8 |
| Content-Transfer-Encoding | 7bit |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 79 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | Andrew Morton <akpm@linux-foundation.org>, Paul Bolle <pebolle@tiscali.nl>, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, Arnd Bergmann <arnd@arndb.de> |
| X-Original-Date | Mon, 13 Jul 2015 14:57:10 +0300 |
| X-Original-Message-ID | <55A3A796.4050108@plexistor.com> |
| X-Original-References | <1436781167-14446-1-git-send-email-geert+renesas@glider.be> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | aioe.org linux.kernel:1182751 |
Show key headers only | View raw
On 07/13/2015 12:52 PM, Geert Uytterhoeven wrote:
> From: Arnd Bergmann <arnd@arndb.de>
>
> The DAX implementation relies on the architecture to provide a working
> copy_user_page() function, as reported by Michael Ellerman's kisskb
> build bot:
>
> fs/dax.c: error: implicit declaration of function 'copy_user_page' [-Werror=implicit-function-declaration]: => 266:2
>
static int copy_user_bh(struct page *to, struct buffer_head *bh,
unsigned blkbits, unsigned long vaddr)
{
void *vfrom, *vto;
if (dax_get_addr(bh, &vfrom, blkbits) < 0)
return -EIO;
vto = kmap_atomic(to);
copy_user_page(vto, vfrom, vaddr, to);
kunmap_atomic(vto);
return 0;
}
I do not understand why we need to call copy_user_page here at all?
the destination is kmap_atomic() so it must be there right? also the
destination is the cow-to page so surly it is not yet mapped to user-space
mapping.
the from is pmem which is just there.
From what I understand copy_user_page means:
On these ARCHs that each user-mapping has its own VM cache, please invalidate
the other VM caches.
Like on arm64 (arch/arm64/mm/copypage.c):
copy_page(kto, kfrom);
__flush_dcache_area(kto, PAGE_SIZE);
So what I do not understand is why copy_user_page does not have a default
implementation for those ARCHs that don't override it.
But again I think the above copy_user_page use is not at all needed.
And of course what do I know?
Thanks
Boaz
> We already have a list of architectures that are known to be incompatible,
> but the list is missing ARC and SH at the moment. Further, blackfin and
> c6x also lack support for this function, but are already excluded because
> they do not support MMU-based kernels.
>
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
> [Geert: s/SH/SUPERH/, as reported by Paul Bolle <pebolle@tiscali.nl>]
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> ---
> fs/Kconfig | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/fs/Kconfig b/fs/Kconfig
> index 011f43365d7b1e53..53326a50a3ce3830 100644
> --- a/fs/Kconfig
> +++ b/fs/Kconfig
> @@ -37,7 +37,7 @@ source "fs/f2fs/Kconfig"
> config FS_DAX
> bool "Direct Access (DAX) support"
> depends on MMU
> - depends on !(ARM || MIPS || SPARC)
> + depends on !(ARC || ARM || MIPS || SPARC || SUPERH)
> help
> Direct Access (DAX) can be used on memory-backed block devices.
> If the block device supports DAX and the filesystem supports DAX,
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH] fs: dax: do not build on ARC or SH Geert Uytterhoeven <geert+renesas@glider.be> - 2015-07-13 12:00 +0200 Re: [PATCH] fs: dax: do not build on ARC or SH Boaz Harrosh <boaz@plexistor.com> - 2015-07-13 14:00 +0200
csiph-web