From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C6E7DC3DA49 for ; Fri, 26 Jul 2024 09:51:12 +0000 (UTC) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=U2jtsJ/6; dkim-atps=neutral Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4WVjgg3NPTz3dDT for ; Fri, 26 Jul 2024 19:51:11 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=U2jtsJ/6; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=kernel.org (client-ip=2604:1380:40e1:4800::1; helo=sin.source.kernel.org; envelope-from=chao@kernel.org; receiver=lists.ozlabs.org) Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4WVjgY3RhTz3cyc for ; Fri, 26 Jul 2024 19:51:05 +1000 (AEST) Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id 51ACBCE136E; Fri, 26 Jul 2024 09:51:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B6CB1C32782; Fri, 26 Jul 2024 09:50:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1721987460; bh=kyxWm7vi7Uey+9KCC09pWxJM549AzmLQVR6ZyDB2V3I=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=U2jtsJ/6IhszHDVTicPZLDLrsVd5S7ryG1SOYMt/2+gK7dZxtyqzgMEYT1z0V/lSA a02xwSeG/mHKEd01ch0QPkdiu2rTdMfh1LSx68JJKJ5soSIRII/HYhuJuziiOEi72w jtsux5x+8VN91ruI/jJEXQu33gCreDTTP5/jSjfqJt21h30IwvfmM+Xx7pnkGUiMUL 9NoF0XMNNVErHuC9d0aQXKkaiiiNBCy0wyRDMqn+h159p38j4KWt2TUtN48+1PXxDV +FseXsVM9BeDgSOk76xIxoSJgePUObnAAqv/1mn0/R9lHKc2Ad1l6E4AyXFWKp16d2 k1BeQFu6Dtf7g== Message-ID: Date: Fri, 26 Jul 2024 17:50:57 +0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3] erofs: support STATX_DIOALIGN To: Gao Xiang , linux-erofs@lists.ozlabs.org References: <20240718063756.2982763-1-lihongbo22@huawei.com> <20240718083243.2485437-1-hsiangkao@linux.alibaba.com> Content-Language: en-US From: Chao Yu In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: linux-erofs@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development of Linux EROFS file system List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: LKML Errors-To: linux-erofs-bounces+linux-erofs=archiver.kernel.org@lists.ozlabs.org Sender: "Linux-erofs" On 2024/7/18 16:35, Gao Xiang wrote: > > > On 2024/7/18 16:32, Gao Xiang wrote: >> From: Hongbo Li via Linux-erofs > > Also I will fix the email address issue > (Hongbo Li ) when applying too. > >> >> Add support for STATX_DIOALIGN to erofs, so that direct I/O >> alignment restrictions are exposed to userspace in a generic >> way. >> >> [Before] >> ``` >> ./statx_test /mnt/erofs/testfile >> statx(/mnt/erofs/testfile) = 0 >> dio mem align:0 >> dio offset align:0 >> ``` >> >> [After] >> ``` >> ./statx_test /mnt/erofs/testfile >> statx(/mnt/erofs/testfile) = 0 >> dio mem align:512 >> dio offset align:512 >> ``` >> >> Signed-off-by: Hongbo Li >> Signed-off-by: Gao Xiang Reviewed-by: Chao Yu Thanks,