Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp1709135ybg; Thu, 30 Jul 2020 00:01:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzwhJYUEtfHViwdu0GKNLJF5xB0gr4R1uhD1HXXp50wxneNf8Qu28bmpXII3Mwcxk4krWE7 X-Received: by 2002:aa7:db08:: with SMTP id t8mr1345851eds.36.1596092512580; Thu, 30 Jul 2020 00:01:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596092512; cv=none; d=google.com; s=arc-20160816; b=I/R3vsjL2EASHliN/rNvx/taetb+elqJo4+u0ejUmnI5VR4XGKVVytukGVnE28/8Lm WLA+2BQb9jh3dkv8HsHVut14frh1dia8IlayI24e8BmAeP0qmp4HD7lRHh3cebZU9r8q jfk/Qg9luh3W3CcbpH21G4vTcKXwa6dRwcGuApsWOKp01BSvtKtOSNslLLpyYJ4sShd/ 7UaOsXIUT006t+J62204V3RUqoTFLQMWMqpaYgmV7nHDe4QDhEKU+XScAJTSXmelRIuH 7NXfWYi8WUVv9MFyjjwk2FepLqAQBxqV+M7X6wKxJUD6lhzrucWbp+Ub4xcrYwy4vzvP XlrQ== 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 :content-language:thread-index:content-transfer-encoding :mime-version:message-id:date:subject:in-reply-to:cc:to:from :dkim-signature:dkim-filter; bh=pDvJp/B32STG6lSb4sos12eTCOwHaRMloGPYdlNzDzk=; b=O0f7vKzNkF5osXGklsWyo7IzCni6AHl+IiWdu+ROSjQx/ko7Dxw6/9eBvnuR77gMVl 61EAUM18jlgT3Tulz61YRARwUvKBydryB4W5WAWnzm8gzy/CcqYAOemLJttTIv6Z3d/b 6rCFWLGRr8XlhoLR/y6t2vqpLhP9AWkohFNG5ET6RAVGpbnSLXAjRwPG5Jg2N6yNUQPo /w71QDziexmXBzfTetmOrAF21IS9mFlcegR9Uf8fiG/Oh29ES5ZE97+KX00WvTvnZgnl IWckDdAaGqpdWiQvWryZn4k3+khnXu14VIUSpjxonI9vyKnsGi8K6BeV9mA0JBIVakiD WdzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=ROpRuTiB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id 89si2772238edr.415.2020.07.30.00.01.29; Thu, 30 Jul 2020 00:01:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=ROpRuTiB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1728792AbgG3G7K (ORCPT + 99 others); Thu, 30 Jul 2020 02:59:10 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:42007 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726820AbgG3G7J (ORCPT ); Thu, 30 Jul 2020 02:59:09 -0400 Received: from epcas1p1.samsung.com (unknown [182.195.41.45]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20200730065906epoutp017e53644864307c26ce947b191cf75a39~mdYhl0hj72819328193epoutp013 for ; Thu, 30 Jul 2020 06:59:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20200730065906epoutp017e53644864307c26ce947b191cf75a39~mdYhl0hj72819328193epoutp013 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1596092346; bh=pDvJp/B32STG6lSb4sos12eTCOwHaRMloGPYdlNzDzk=; h=From:To:Cc:In-Reply-To:Subject:Date:References:From; b=ROpRuTiBERS0/ge6VM3/BlNHL7pnkOsQwuSnAXxYhkOcfT9hPA6Bu1cZmcDI67GOZ F05Hytcb4LzhQqZNqyVOaBbUMc9X7gOivyFNKYTSUueLW87xCLKqL40wxfFP7LpMy/ RHxE0mKQ7YSP8g/yHNH5GtbMZ+BpUe3GqlfyUEgw= Received: from epsnrtp3.localdomain (unknown [182.195.42.164]) by epcas1p2.samsung.com (KnoxPortal) with ESMTP id 20200730065905epcas1p234aa4fa21170e122709ce2d996e24708~mdYguMJHX0989609896epcas1p2Z; Thu, 30 Jul 2020 06:59:05 +0000 (GMT) Received: from epsmges1p2.samsung.com (unknown [182.195.40.160]) by epsnrtp3.localdomain (Postfix) with ESMTP id 4BHLqY0ktGzMqYkf; Thu, 30 Jul 2020 06:59:05 +0000 (GMT) Received: from epcas1p3.samsung.com ( [182.195.41.47]) by epsmges1p2.samsung.com (Symantec Messaging Gateway) with SMTP id 89.68.19033.8BF622F5; Thu, 30 Jul 2020 15:59:05 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas1p4.samsung.com (KnoxPortal) with ESMTPA id 20200730065904epcas1p4c3c049738b1a543aaa37f63d92d0c35d~mdYfpf6Vh0573405734epcas1p4O; Thu, 30 Jul 2020 06:59:04 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20200730065904epsmtrp12017cdd9f76713325f52c09579d18b10~mdYfoaZPz3001230012epsmtrp1j; Thu, 30 Jul 2020 06:59:04 +0000 (GMT) X-AuditID: b6c32a36-159ff70000004a59-70-5f226fb82628 Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id C8.A7.08382.8BF622F5; Thu, 30 Jul 2020 15:59:04 +0900 (KST) Received: from namjaejeon01 (unknown [10.88.104.63]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20200730065904epsmtip16ed9e1d48eaf82e39682897bd35e3597~mdYffDp4G0290802908epsmtip16; Thu, 30 Jul 2020 06:59:04 +0000 (GMT) From: "Namjae Jeon" To: "'Tetsuhiro Kohada'" , Cc: , , "'Sungjong Seo'" , , In-Reply-To: Subject: RE: [PATCH] exfat: retain 'VolumeFlags' properly Date: Thu, 30 Jul 2020 15:59:04 +0900 Message-ID: <015e01d6663e$e99e4ec0$bcdaec40$@samsung.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQJOchBlupSQwdEhi4rggGDYoy3yLwE5agcKAmVRsN0CrFCHjgKKBjVEAx7tf5ECsQmAL6e6b/8Q Content-Language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprDJsWRmVeSWpSXmKPExsWy7bCmvu7OfKV4g1+9zBY/5t5msXhzciqL xZ69J1ksLu+aw2Zx+f8nFotlXyazWGz5d4TVgd3jy5zj7B5tk/+xezQfW8nmsXPWXXaPvi2r GD0+b5ILYIvKsclITUxJLVJIzUvOT8nMS7dV8g6Od443NTMw1DW0tDBXUshLzE21VXLxCdB1 y8wBukVJoSwxpxQoFJBYXKykb2dTlF9akqqQkV9cYquUWpCSU2BoUKBXnJhbXJqXrpecn2tl aGBgZApUmZCTMe3QX8aCmRwVX28dZ2lgPMbWxcjJISFgInHj/xsgm4tDSGAHo8T1Jd+ZIJxP jBLHv55jAqkSEvjGKNFxzQamY83LF6wQRXsZJW4t/8oM4bwEKpo7C2wum4CuxL8/+8FsEYEE ic23NjOD2MwC5xklGif4g9icArYSH7buZAexhQUsJV5O2glWzyKgKvHk2gIWEJsXKP73xAtm CFtQ4uTMJywQc+Qltr+dwwxxkYLEz6fLWCF2RUk8vP8dqkZEYn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mEVCVeHJt AdhUXqD43xMvmCFsQYmTM5+AxZkFtCV6H7YyQtjyEtvfzmGGuFRB4ufTZawQV0RJPLz/Hape RGJ2ZxvzBEbhWUhGzUIyahaSUbOQtCxgZFnFKJlaUJybnltsWGCYl1quV5yYW1yal66XnJ+7 iREcW1qaOxi3r/qgd4iRiYPxEKMEB7OSCG87l0K8EG9KYmVValF+fFFpTmrxIUZpDhYlcd4b hQvjhATSE0tSs1NTC1KLYLJMHJxSDUylLeHcRvpTkqzn6c/XTTujsfRK6IIuucfPVvJqnP94 9c7D3ulndwgKmU24nFY3g3frDHmF3u1cKYdOXtZaWyCSlP7UaZmJdW4zW2i50q4QnQzzz4em S1bMvmvOYBFcbim9ddKaKdKnPX5mKy9OmHP1/LQCZptChyczAyOXMN6S75jP3eU436dL4eOT 5T/PljYpPjh7Z+uDyMULxBXbCw94VX/3bFJZnNr81jdkSpmNz4sovUV/Dh+rMgj+v+zAl69m kmWsn/dsnrSNtfPWKt+jkvPtnB9qxDzcYXmQTeuyF4P83CSd5XVZL7t8FWdOdntoOcewOUb3 vgrnMqXe3hk3RW77Tln12X+tQXdUs4kSS3FGoqEWc1FxIgBBzbLyHAMAAA== X-CMS-MailID: 20200730065904epcas1p4c3c049738b1a543aaa37f63d92d0c35d 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: 20200708095813epcas1p2277cdf7de6a8bb20c27bcd030eec431f References: <20200708095746.4179-1-kohada.t2@gmail.com> <005101d658d1$7202e5d0$5608b170$@samsung.com> <015801d65a4a$ebedd380$c3c97a80$@samsung.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Ping.. Hi Tetsuhiro, > > On 2020/07/15 19:06, Tetsuhiro Kohada wrote: > >> It looks complicated. It would be better to simply set/clear VOLUME DIRTY bit. > > > > I think exfat_set_vol_flags() gets a little complicated, because it > > needs the followings (with bit operation) > > a) Set/Clear VOLUME_DIRTY. > > b) Set MEDIA_FAILUR. > > How about splitting these into separate functions as below? > > > exfat_set_volume_dirty() > exfat_set_vol_flags(sb, sbi->vol_flag | VOLUME_DIRTY); > > exfat_clear_volume_dirty() > exfat_set_vol_flags(sb, sbi->vol_flag & ~VOLUME_DIRTY); Looks good. > > exfat_set_media_failure() > exfat_set_vol_flags(sb, sbi->vol_flag | MEDIA_FAILURE); Where will this function be called? We don't need to create unused functions in advance... > > > The implementation is essentially the same for exfat_set_vol_flags(), but I think the intention of the > operation will be easier to understand. Yes. Thanks! > > > BR > --- > Tetsuhiro Kohada