Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6405723imu; Mon, 21 Jan 2019 08:21:01 -0800 (PST) X-Google-Smtp-Source: ALg8bN5t7igYL8YXNYREsu5VpKiBaCu6f84T3mAkd6l82QHtA+Q5O78grUnhbscKOiWJFhWXu8vl X-Received: by 2002:a63:b94c:: with SMTP id v12mr28484489pgo.221.1548087661363; Mon, 21 Jan 2019 08:21:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548087661; cv=none; d=google.com; s=arc-20160816; b=Q/H29RFddnKpbe9E6jiEnjioji4/5DACEX2QSGOWdxWq3IagnImnN1/vLTdWJlOYuz Dn+4OybBW4JC5CQ6Nzw4VlfsBiH+LmyQozZhU+YdZtobbZ65r2mUekUViCng4gTjuY9r fpVrDT3amTiQKeX0epesbVMhjqi6kRsnz5g5NauR09dMO5p5TL/bMf++LRTWhdc6Bx8w +vC5V4soKyYyCBdab8IDvPqiv+Jaupr92kZlo9blhrUsOsyFeeTo83EciELlw8Yjixdb P4pfVRuhu+6uld7mHjzoByE5YVdLUeWi3xRmbXvRNA8pfYEulcJpfFHmn+Devbq06Cbl xSJQ== 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=ctfCN4E1cJQGtosyHQt+Pko1sdRz26KLkSI4PwCpkN0=; b=yGu6nkVMP0IES5Sbt3GEt7hN0qS5PkvSAPtYJ+KnBOFqzYyF3UpYbiEWEmYPpT20I5 s7yP+/W4/fqWC7r5AxBiKx+an6K5HeLMXbqRXWI+JdOMz8Y5yrainHMmoRuwLKx4ljUR 2y9JcWR1BAaAtbEidI7sU85dbwhkaeqldfC3pxZmyagGfG3oGBYVMBtFk4hSttLEOUVu gbkV5AS9qPmsrsBBv/7APy9Rae8KS9ILrgVCSJlkpBdcL0TOx5/kdy40yZHArl87Mpi2 lbjYy/UVynnhjlONH1anJ08Oy8GtSBTbnCueGi5Av0PC5cTctl5EmBN4Sju/um1ry1pJ mwog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b="nbDM/pXY"; 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 97si12846922plb.3.2019.01.21.08.20.45; Mon, 21 Jan 2019 08:21:01 -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="nbDM/pXY"; 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 S1729861AbfAUQTh (ORCPT + 99 others); Mon, 21 Jan 2019 11:19:37 -0500 Received: from userp2130.oracle.com ([156.151.31.86]:47844 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728754AbfAUQTg (ORCPT ); Mon, 21 Jan 2019 11:19:36 -0500 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id x0LGJN3r001540; Mon, 21 Jan 2019 16:19:23 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=ctfCN4E1cJQGtosyHQt+Pko1sdRz26KLkSI4PwCpkN0=; b=nbDM/pXYiVSBf6cPxfY11y1Rd/Rg0njmT6CwH4QS5dv11Irsjga0GnS8KazvujiB6ZK8 TWdXhjoyHSLcxHBCYpt/qF7AZsjBVjvOOOQhi3I9x5Uw/newXUsUVr64bbrJkaXJbRYV lhMxQV3Y0sPmGcbiYnZRSjnpENmPpCR8ZBWlfYxL+d7sWSWnOi2PSC0/ospXdinFanV9 2hgbCnHi8rXyJub7YEFSgRHB7LtJ3vzg8OJkJqOG0Rn604g5GyYvlmPRHiT5/k3TD82/ AClSxVwTHxB8dendHY83z6bEzp7a5G1tplTWsreLizwH+GaXlU7X/Sy2ZrNDAhZUaQhK YA== Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by userp2130.oracle.com with ESMTP id 2q3uaufjxk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 21 Jan 2019 16:19:22 +0000 Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id x0LGJHOj015989 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 21 Jan 2019 16:19:17 GMT Received: from abhmp0007.oracle.com (abhmp0007.oracle.com [141.146.116.13]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id x0LGJGqo004621; Mon, 21 Jan 2019 16:19:16 GMT Received: from [192.168.1.93] (/99.156.91.244) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 21 Jan 2019 08:19:16 -0800 Subject: Re: [PATCH v1] fs/jfs: Switch to use new generic UUID API To: Christoph Hellwig , Andy Shevchenko Cc: linux-kernel@vger.kernel.org, Dave Kleikamp , jfs-discussion@lists.sourceforge.net References: <20190110134153.83901-1-andriy.shevchenko@linux.intel.com> <20190121084950.GG18680@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 fZp7Mc7Lb3sf9r2fIlVJXVhQwMFjPYkPLbQBAtHlnt8TClkF2te47tVWuDqI4R0pwACKhUht lQRXpJy7/8pHdNfHyBLOqw6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qq3BGUDB0DLHtMVu3r9x2327QSp/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: <6ccf3581-71b8-6502-5050-643006423a63@oracle.com> Date: Mon, 21 Jan 2019 10:19:15 -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: <20190121084950.GG18680@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=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1901210128 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/21/19 2:49 AM, Christoph Hellwig wrote: >> + buf->f_fsid.val[1] = (u32)crc32_le(0, (char *)&sbi->uuid + sizeof(sbi->uuid)/2, > > This adds an overly long line, and has weird operator spacing. > > In fact given how much deep magic it does it should probably be moved > into a helper and properly documented when you touch it anyway. > I cleaned this up a bit when I pushed it to the jfs tree. https://github.com/kleikamp/linux-shaggy/commit/2e3bc6125154c691e987e2554f2c99ec10f83b73 Here's the relevant part. It's still a bit ugly, but I got rid of an unnecessary cast and kept the lines from exceeding 80 characters. 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); buf->f_namelen = JFS_NAME_MAX; return 0;