Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp18305161ybl; Thu, 2 Jan 2020 23:07:38 -0800 (PST) X-Google-Smtp-Source: APXvYqzMiTrOShuc+FQBSuaoLKJEHMs9gdGfdxi/QunxPGEVXeogXw8RhNCr5jrgSXkoFk3Yd/nP X-Received: by 2002:a05:6830:4b9:: with SMTP id l25mr98906659otd.266.1578035258684; Thu, 02 Jan 2020 23:07:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578035258; cv=none; d=google.com; s=arc-20160816; b=ydwdIRmqJPLzXcXaDPl6S2v+4YbjDH72XO/gdnDbeVaaNfQHwhbTNryHwxY4dnWNya 9OGUedI/nshc5ax6mTN5lYhoEoxHAlj2S+KyLQW48OY4VkLoEfquIKXOwsTZ6s3NRQcr dpnXVYSZtpTVOnu+FYqlpkUZWSIVClqiKOraaV3EHWYzu7aLYbm2P2orh4DJ3lspp6EF vfj8QCgfLlUH+gYB9NR/gwC8+Knx7F7eTP5Xm/D/r+XZVUopjSsZfe+XpkGzvfM/M0rf tOLRIo1KezmOYEh5xAo1Lapy0Mse7q+9PQKrAZNf+DwM/GW5zyjd+8TWLfwa6NcLo57t HiKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:dlp-filter:cms-type :thread-index:content-language:content-transfer-encoding :mime-version:message-id:date:subject:in-reply-to:cc:to:from :dkim-signature:dkim-filter; bh=rfGGNQT8evgRVw+JTBLO+XI7I4bJD+fGwGykG+9qYHQ=; b=c68eiVAISboU4zZoxNX8ImoMW3u9HLGUocfxWqnsNw3U/uKvDCeK54Jx23bCrNYMKP eBUbaqG8TrRET5spObZSpYAMtfXVQt/35BmqQEYSDRt/hWfb3iEXwENENDLf+UOiWqud Vjo0ST2R2kVuubUodcwC/hayXvdXP2rF+7AiVaue7N3d5LsuEasM1hC4FxFD5pkiAiZS rfW+rxiNDDRenTHp6Z2MQcPTDlA4Xc3Zma5+Ei3qhQBh029duiiRTKfErjLarWZyjcuk OpnfCrMCKIBfnq11mG6zsUdtCv/bKsCz4GHk0eE3jf2ajIrAXNMGfhl42yAoXGasCq7U Jjpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=jQ5Ts5r+; 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=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o16si31550629otp.289.2020.01.02.23.07.24; Thu, 02 Jan 2020 23:07:38 -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=@samsung.com header.s=mail20170921 header.b=jQ5Ts5r+; 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=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726739AbgACHGa (ORCPT + 99 others); Fri, 3 Jan 2020 02:06:30 -0500 Received: from mailout4.samsung.com ([203.254.224.34]:46897 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726054AbgACHGa (ORCPT ); Fri, 3 Jan 2020 02:06:30 -0500 Received: from epcas1p2.samsung.com (unknown [182.195.41.46]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20200103070627epoutp04eba950ca61d76b13e51a6958ee701945~mTqR_lSuu1130711307epoutp04U for ; Fri, 3 Jan 2020 07:06:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20200103070627epoutp04eba950ca61d76b13e51a6958ee701945~mTqR_lSuu1130711307epoutp04U DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1578035187; bh=rfGGNQT8evgRVw+JTBLO+XI7I4bJD+fGwGykG+9qYHQ=; h=From:To:Cc:In-Reply-To:Subject:Date:References:From; b=jQ5Ts5r+9T/OdQO2FHk0G0dwD2j28nSGul2Rfocuf+W6hC4+HE2Surw6R9Mc5ndHr EX2Aj8D2K+qrA47jWaU5JErm4B9YgPc7Bsn5myRVfNoiJsgkarPZprfvC7wy7/D1gY Rs46eJpH8s3+6BwhmP870bC0PEQH9a9ymmVoUfzI= Received: from epsnrtp2.localdomain (unknown [182.195.42.163]) by epcas1p4.samsung.com (KnoxPortal) with ESMTP id 20200103070627epcas1p44761069aa188b7822dd095ce151f4cab~mTqRce6RQ1519215192epcas1p4Z; Fri, 3 Jan 2020 07:06:27 +0000 (GMT) Received: from epsmges1p1.samsung.com (unknown [182.195.40.166]) by epsnrtp2.localdomain (Postfix) with ESMTP id 47pwtV3jRVzMqYkg; Fri, 3 Jan 2020 07:06:26 +0000 (GMT) Received: from epcas1p4.samsung.com ( [182.195.41.48]) by epsmges1p1.samsung.com (Symantec Messaging Gateway) with SMTP id 39.A2.57028.2F7EE0E5; Fri, 3 Jan 2020 16:06:26 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas1p3.samsung.com (KnoxPortal) with ESMTPA id 20200103070626epcas1p3a2dc24ac9d4ae26ad190f0d26edbd225~mTqQSI5wP2168721687epcas1p3t; Fri, 3 Jan 2020 07:06:26 +0000 (GMT) Received: from epsmgms1p2new.samsung.com (unknown [182.195.42.42]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20200103070626epsmtrp14c57a6da2e8900fc1f20d683631eb339~mTqQRa1qo0737607376epsmtrp1o; Fri, 3 Jan 2020 07:06:26 +0000 (GMT) X-AuditID: b6c32a35-50bff7000001dec4-68-5e0ee7f2861f Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p2new.samsung.com (Symantec Messaging Gateway) with SMTP id 5A.78.06569.1F7EE0E5; Fri, 3 Jan 2020 16:06:25 +0900 (KST) Received: from namjaejeon01 (unknown [10.88.104.63]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20200103070625epsmtip2ad2d3260bc48f6bd73e3613cf2be0e80~mTqQKMf2x2126821268epsmtip2P; Fri, 3 Jan 2020 07:06:25 +0000 (GMT) From: "Namjae Jeon" To: =?UTF-8?Q?'Pali_Roh=C3=A1r'?= Cc: , , , , , , In-Reply-To: <20200102135502.hkey7z45gnprinpp@pali> Subject: RE: [PATCH v9 10/13] exfat: add nls operations Date: Fri, 3 Jan 2020 16:06:25 +0900 Message-ID: <003101d5c204$5046e9a0$f0d4bce0$@samsung.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 16.0 Content-Language: ko Thread-Index: AQJSGi/S1M7UFBjz5N3SW71o+eawLwHz+Lr1AtmMBwQCoo41BaakU3fg X-Brightmail-Tracker: H4sIAAAAAAAAA02SaUwTQRiGM912uxBXh1r1s0ZTNx4BA7TUwmKo8U5FfmD45QVsYFOIvdIt qKgJSkTBE2Oi1gISFSNyqRUFNQjVGDRBxAhC0qiJxqOiFbxFY9vFyL9n3nm/+b53ZihC0Uiq qHyrk3dYOTNDRkpbvNGa2OHXEzM1+/0z2ZIzTSR74eJdCdvvGyTYm7e6pOzjNjfJVjz4JWE9 f+7I2N6PAekSytjq8smN7ZX1cuONgWLSeMhTh4wjl2cZO6+9J9PJ9eaUPJ7L5R1q3ppjy823 mgzMmoys5Vn6RI02VpvMJjFqK2fhDcyKtPTYVfnm4ECMupAzFwSldE4QmPjFKQ5bgZNX59kE p4Hh7blmu1ZjjxM4i1BgNcXl2CyLtBpNgj7ozDbntXiOI/s3vPW2e5QsRh/pchRBAV4Inopa IsQKfB1BR/2ychQZ5GEEu074CHHxFUHNvVH5v4rDJX6J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tN54xzyBUXgWklGzkIyahWTULCTtCxhZVjFKphYU56bnFhsWGOWllusVJ+YWl+al6yXn525i BMeYltYOxhMn4g8xCnAwKvHwTrjGGyfEmlhWXJl7iFGCg1lJhLc8ECjEm5JYWZValB9fVJqT WnyIUZqDRUmcVz7/WKSQQHpiSWp2ampBahFMlomDU6qBMdtWyWFSVm1Q5K8ct0bvxNUP92RI uAVeVuSzcuc3eXlURyXWsEhGZN3Cx1tv+8k+O6zitGFFsjXjE85DCtXqyoJBh2rZMmbN2ZYe 6a9V9Pj4qfrVe25K//xlMu/kysnmIXNmOm2pyza1nsj8jvV+6qyf++Uq12U8fd4yb+rWZr+e 69sYVbTfKrEUZyQaajEXFScCAO9vDi6tAgAA X-CMS-MailID: 20200103070626epcas1p3a2dc24ac9d4ae26ad190f0d26edbd225 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: SVC_REQ_APPROVE CMS-TYPE: 101P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20200102082407epcas1p4cf10cd3d0ca2903707ab01b1cc523a05 References: <20200102082036.29643-1-namjae.jeon@samsung.com> <20200102082036.29643-11-namjae.jeon@samsung.com> <20200102135502.hkey7z45gnprinpp@pali> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On Thursday 02 January 2020 16:20:33 Namjae Jeon wrote: > > This adds the implementation of nls operations for exfat. > > > > Signed-off-by: Namjae Jeon > > Signed-off-by: Sungjong Seo > > --- > > fs/exfat/nls.c =7C 809 > > +++++++++++++++++++++++++++++++++++++++++++++++++ > > 1 file changed, 809 insertions(+) > > create mode 100644 fs/exfat/nls.c > > > > diff --git a/fs/exfat/nls.c b/fs/exfat/nls.c new file mode 100644 > > index 000000000000..af52328e28ff > > --- /dev/null > > +++ b/fs/exfat/nls.c >=20 > ... >=20 > > +int exfat_nls_uni16s_to_vfsname(struct super_block *sb, > > + struct exfat_uni_name *uniname, unsigned char *p_cstring, > > + int buflen) > > +=7B > > + if (EXFAT_SB(sb)->options.utf8) > > + return __exfat_nls_utf16s_to_vfsname(sb, uniname, p_cstring, > > + buflen); > > + return __exfat_nls_uni16s_to_vfsname(sb, uniname, p_cstring, > buflen); > > +=7D >=20 > Hello, I'm looking at this function and basically it do nothing. > Or was it supposed that this function should do something more for UTF-8 > encoding? >=20 > There is one if- statement, but in both branches is executed exactly > same code. >=20 > And executed function just pass same arguments as current callee > function. >=20 > So calls to exfat_nls_uni16s_to_vfsname() can be replaced by direct > calls to __exfat_nls_uni16s_to_vfsname(). Ah, The function names are similar, but not same. see utf16s/uni16s. Thanks=21 >=20 > Or maybe better, rename __exfat_nls_uni16s_to_vfsname() function to > exfat_nls_uni16s_to_vfsname(). >=20 > > +int exfat_nls_vfsname_to_uni16s(struct super_block *sb, > > + const unsigned char *p_cstring, const int len, > > + struct exfat_uni_name *uniname, int *p_lossy) > > +=7B > > + if (EXFAT_SB(sb)->options.utf8) > > + return __exfat_nls_vfsname_to_utf16s(sb, p_cstring, len, > > + uniname, p_lossy); > > + return __exfat_nls_vfsname_to_uni16s(sb, p_cstring, len, uniname, > > + p_lossy); > > +=7D >=20 > And same for this function. >=20 > -- > Pali Roh=C3=A1r=0D=0A>=20pali.rohar=40gmail.com=0D=0A=0D=0A