Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6492320imu; Mon, 21 Jan 2019 09:48:26 -0800 (PST) X-Google-Smtp-Source: ALg8bN6dMlWuHspp14M8MsrZu/mqF9+EC/5oTNu2+ro5R4rzLGwmZ7PZ2P4csYSnZnoVzoEazNe8 X-Received: by 2002:a62:34c6:: with SMTP id b189mr31214556pfa.229.1548092906774; Mon, 21 Jan 2019 09:48:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548092906; cv=none; d=google.com; s=arc-20160816; b=gEh3RkuAShVazRR6dMlAwRM6F9nPIUUzrD14uPNKo9Lq18hGmhcPLmzqq1bBmpky1q PDRBjybKm9cmVDTF+lzhetZjmQA34mX+R2IWjwzT+gNVv6ZJ8cUbWsa+c3zZj+UyJbji piyWJg+WS2N0D8GQPIgBwDbK2Oxu19mUDJ+/pVoBYuKIlrF0PV4RuTHFWrEwNoU4aH1c potfy6xMMyFb0q0duvYjbD56DVbBdnmSroe6uDmlJy6w634YPV5j+7JY1Tlya4Z2S002 gX83me5jzp8ZNtnIAHbnvwsWJGONkeVM5dsKWXccHRUyA44NTumnhSsmhFuOzeGE6i3V y5mQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:openpgp:from:references:cc:to:subject :dkim-signature; bh=I/gNFUdENIY7N8ymWunIUJLZD9Dsk3upm3G0Yl3cZOs=; b=gCw8Qk+TKVD64PG5mR1UM35JU9PEnYvLpTO+cZlzeAVucA12slUU3yWnJ8KVj6eyas K+5MqgLns/iJd/UESIwhIZOrhN8QyDw5r3o6pujo+Etvym9QdPHlsIWGvmr7uPlV+f2n yISPSb6gTRzlJp43luuOxT9j2jaWSMTVbnxWJCR/ZbZ+xOP9HJKzcH24Mn3nKKNSMU/j ELyez+bKnLGh9405/sX0wqlIgNJjNomQX4acbyS5KJOKQPfHBdomDfHak/uBv8WzuwwC JEYaAx/oJG1iRvmHUYPU6vDHf1Rgh86Q6MtV5TF6Zhu2/8404nUqaR/Ag5dZ5ZUrB04l A+zw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=O7TsiqHO; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y17si13116842pll.10.2019.01.21.09.48.10; Mon, 21 Jan 2019 09:48:26 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=O7TsiqHO; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726451AbfAURqR (ORCPT + 99 others); Mon, 21 Jan 2019 12:46:17 -0500 Received: from userp2120.oracle.com ([156.151.31.85]:54426 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726020AbfAURqR (ORCPT ); Mon, 21 Jan 2019 12:46:17 -0500 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id x0LHinWZ029800; Mon, 21 Jan 2019 17:46:05 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=I/gNFUdENIY7N8ymWunIUJLZD9Dsk3upm3G0Yl3cZOs=; b=O7TsiqHO25iDPcC4OtsRx086p4S4MgDeELLgtW5v4gy6e7tVCAPKxV9BUnWBk8nCYIPD Fc0RyYBC0OGpV+930R3Pbrgd5kee74NUnKkIso1+BSMZPnCE0f70uQH0SwP9bF0g6ohg KPyztAKACamcTomAt273ZQPODciyIYvvCNbAEwntitqOwkQs4v1xWDjTmjVBaEdlOgjP NBtpM43N04/jCSrFXCVq0IncDjN/dsHYfXujSt87C505PrEc6E3Fp6eLYGgrsBvwX5kT cL/5DjgmcB+sKhNfHhcak1fTNVXIK+xqqGSOFSc0GreCKkC/4fpS7zuLcqfT75ZX3rhY Mw== Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by userp2120.oracle.com with ESMTP id 2q3vhrfshm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 21 Jan 2019 17:46:05 +0000 Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id x0LHk4Va022548 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 21 Jan 2019 17:46:04 GMT Received: from abhmp0009.oracle.com (abhmp0009.oracle.com [141.146.116.15]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id x0LHk4Jw023667; Mon, 21 Jan 2019 17:46:04 GMT Received: from [192.168.1.93] (/99.156.91.244) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 21 Jan 2019 09:46:03 -0800 Subject: Re: [PATCH v1] fs/jfs: Switch to use new generic UUID API To: Christoph Hellwig Cc: Andy Shevchenko , linux-kernel@vger.kernel.org, jfs-discussion@lists.sourceforge.net References: <20190110134153.83901-1-andriy.shevchenko@linux.intel.com> <20190121084950.GG18680@lst.de> <6ccf3581-71b8-6502-5050-643006423a63@oracle.com> <20190121162338.GA29537@lst.de> From: Dave Kleikamp Openpgp: preference=signencrypt Autocrypt: addr=dave.kleikamp@oracle.com; prefer-encrypt=mutual; keydata= mQINBE7VCEMBEAC3kywrdIxxL/I9maTCxaWTBiHZFNhT5K8QZGLUfW3uFrW89PdAtloSEc1W ScC9O+D2Ygqwx46ZVA7qMXHxpNQ6IZp8he88gQ9lilWD8OJ/T3OKyT6ITdkmsgv6G08QdGCP 0+mCpETv79kcj+Z4pzKLN5QyKW40R3LGcJ6a+0AG5As5/ZkmhceSffdSyDS6zKff3c6cgfQH zl+ugygdKItr3UGIfxuzF3b9uYicsVStwIxyuyzY8i1yYYnnXZtWkI9ZwxT+00PqjCvfVioy xswoscukLQntlkfd4gwM8t56RIxqEo4iNmFwmBYHlSd7C+8SrvPAOgvOtr1vjzJhEsJ2uJNW O2pgZc8xMxe8vhyZK1Nih67hbtzSIpFij06zHwAt4AY3sCbWslOExb8JboINWhI89QcgNmMK uwLHag3D/zZQXQIBvC5H27T49NA6scA92j2qFO6Beks3n/HW6TJni/S9sUXRghRiGDdc/pFr 20R3ivRzKyYBoSWl/3Syo0JcWdEpqq6ti/5MTRFZ+HQjwgUGZ5w+Xu2ttq/q9MyjD4odfKuF WoXk3bF+9LozDNkRi+JxCNT9+D4lsm3kdFTUXHf/qU/iHTPjwYZd6UQeCHJPN6fpjiXolF+u qIwOed8g8nXEXKGafIl3zsAzXBeXKZwECi9VPOxT4vrGHnlTHwARAQABtDZEYXZpZCBLbGVp a2FtcCAoQUtBIFNoYWdneSkgPGRhdmUua2xlaWthbXBAb3JhY2xlLmNvbT6JAjgEEwECACIF Ak7VCEMCGwMGCwkIBwMCBhUIAgkKCwQWAgMBAh4BAheAAAoJEDaohF61QIxkpSsP/3DtjVT0 4vPPB7WWGWapnIb8INUvMJX84y4jziAk9dSESdPavYguES9KLOTXmAGIVwuZj5UtUNie4Q3V fZp7Mc7Lb3sf9r2fIlVJXVhQwMFjPYkPLbQBAtHlnt8TClkF2te47tVWuDqI4R0pwACK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Dqx8G5a1g3Ot6+HxgQM8LsZ5qq3BGUDB0DLHtMVu3r9x2327QSp/q2CgwPn2XzelQ0yNolAt 6wjbQwZXTGIGQGlpAFk7UOED/je8ANKYCkE0ZdqQigyoQFEZtyjYxzIzJRWLl4lJjhBSar1v TiSreQARAQABiQIfBBgBAgAJBQJO1QhDAhsMAAoJEDaohF61QIxk/DsP/RjCZHGEsiX0uHxu JzPglNp9mjgG5dGmgYn0ERSat4bcTQV5iJN2Qcn1hP5fJxKg55T8+cFYhFJ1dSvyBVvatee7 /A2IcNAIBBTYCPYcBC771KAU/JOokYu2lkrGM2SXq4XxpfDzohOS3LDGif47TYpEKWbP4AHq vcIl9CYvnhnbV+B/SxqhH7iYB6q2bqY6ki7fsk2lK65FFhlkkgsKyeOiuaVNEv3tmPCMAY/v oMAsCTLK63Wsd9pUY2SGt2ACIy7pTq+k1b09cqlTM2vux8/R0HNzQBXNcFiKKz+JNVObP30N /hsLs0+Ko9f/2OcixfkGjdih8I+FnRdS6wAO7k6g+tTBOj/sbSbH+eZbxWwANkiFkykOASGA /4RzIDie72NiM8lKzpyrlaruSFxuj9/wZuCT7jaYIaiOMPy7Y0Lpisy/hRhwDCNlKU6Hcr7k hQ1cIx4CB40fwqjbK61tWrqZR47pDKShl5DBRdeX/1a+WHXzDLVE4sfax5xL2wjiCUfEyH7x 9YJoKXbnOlKuzjsm9lZIwVwqw07Qi1uFmzJopHW0H3P6zUlujM0buDmaio+Q8znJchizOrQ3 58pn7BNKx3mmswoyZlDtukab9QGF7BZBMjwmafn1RuEVGdlSB52F8TShLgKUM+0dkFmI2yf/ rnNNL3zBkwD3nWcTxFnX Message-ID: Date: Mon, 21 Jan 2019 11:46:03 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <20190121162338.GA29537@lst.de> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9143 signatures=668682 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=798 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1901210139 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/21/19 10:23 AM, Christoph Hellwig wrote: > On Mon, Jan 21, 2019 at 10:19:15AM -0600, Dave Kleikamp wrote: >> diff --git a/fs/jfs/super.c b/fs/jfs/super.c >> index 65d8fc87ab11..c15ff56a8516 100644 >> --- a/fs/jfs/super.c >> +++ b/fs/jfs/super.c >> @@ -174,9 +174,11 @@ static int jfs_statfs(struct dentry *dentry, struct kstatfs *buf) >> buf->f_files = maxinodes; >> buf->f_ffree = maxinodes - (atomic_read(&imap->im_numinos) - >> atomic_read(&imap->im_numfree)); >> - buf->f_fsid.val[0] = (u32)crc32_le(0, sbi->uuid, sizeof(sbi->uuid)/2); >> - buf->f_fsid.val[1] = (u32)crc32_le(0, sbi->uuid + sizeof(sbi->uuid)/2, >> - sizeof(sbi->uuid)/2); >> + buf->f_fsid.val[0] = crc32_le(0, (char *)&sbi->uuid, >> + sizeof(sbi->uuid)/2); >> + buf->f_fsid.val[1] = crc32_le(0, >> + (char *)&sbi->uuid + sizeof(sbi->uuid)/2, >> + sizeof(sbi->uuid)/2); > > I'd really love to see a little helper to calculate the fsid, and > a comment on that function documenting the design decision behind it. I can do that. It was a long time ago, but I'm sure the design decision was that I took the idea from another filesystem, possibly reiserfs, but I'll make a better case than that. :-) Shaggy