From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ot1-f67.google.com ([209.85.210.67]:44677 "EHLO mail-ot1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726779AbeLAELO (ORCPT ); Fri, 30 Nov 2018 23:11:14 -0500 Received: by mail-ot1-f67.google.com with SMTP id f18so5685740otl.11 for ; Fri, 30 Nov 2018 09:01:18 -0800 (PST) MIME-Version: 1.0 References: <154353682674.1676897.15440708268545845062.stgit@dwillia2-desk3.amr.corp.intel.com> <20181130154902.GL10377@bombadil.infradead.org> <20181130162435.GM10377@bombadil.infradead.org> In-Reply-To: From: Dan Williams Date: Fri, 30 Nov 2018 09:01:07 -0800 Message-ID: Subject: Re: [PATCH] dax: Fix Xarray conversion of dax_unlock_mapping_entry() To: Matthew Wilcox Cc: linux-nvdimm , Jan Kara , linux-fsdevel , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Fri, Nov 30, 2018 at 8:33 AM Dan Williams wrote: > > On Fri, Nov 30, 2018 at 8:24 AM Matthew Wilcox wrote: > > > > On Fri, Nov 30, 2018 at 07:54:49AM -0800, Dan Williams wrote: > > > Looks good to me, although can we make that cookie an actual type? I > > > think it's mostly ok to pass around (void *) for 'entry' inside of > > > fs/dax.c, but once an entry leaves that file I'd like it to have an > > > explicit type to catch people that might accidentally pass a (struct > > > page *) to the unlock routine. > > > > That's a really good idea. Something like this? > > > > typedef struct { > > void *v; > > } dax_entry_t; > > Yes, please. > > > I could see us making good use of that within dax.c. I'm now thinking that this is a nice improvement for 4.21. For 4.20-rc lets do the localized fix.