Message ID | 20230827132835.1373581-6-hao.xu@linux.dev (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 217D9C83F11 for <linux-mm@archiver.kernel.org>; Sun, 27 Aug 2023 13:33:15 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id B350A280004; Sun, 27 Aug 2023 09:33:14 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id AE5E68E0001; Sun, 27 Aug 2023 09:33:14 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 9D47D280004; Sun, 27 Aug 2023 09:33:14 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 8F1BD8E0001 for <linux-mm@kvack.org>; Sun, 27 Aug 2023 09:33:14 -0400 (EDT) Received: from smtpin29.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 664D4C0216 for <linux-mm@kvack.org>; Sun, 27 Aug 2023 13:33:14 +0000 (UTC) X-FDA: 81169975908.29.516DE10 Received: from out-249.mta1.migadu.com (out-249.mta1.migadu.com [95.215.58.249]) by imf17.hostedemail.com (Postfix) with ESMTP id B85474001D for <linux-mm@kvack.org>; Sun, 27 Aug 2023 13:33:12 +0000 (UTC) Authentication-Results: imf17.hostedemail.com; dkim=pass header.d=linux.dev header.s=key1 header.b=nFii2RaA; dmarc=pass (policy=none) header.from=linux.dev; spf=pass (imf17.hostedemail.com: domain of hao.xu@linux.dev designates 95.215.58.249 as permitted sender) smtp.mailfrom=hao.xu@linux.dev ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1693143192; a=rsa-sha256; cv=none; b=l3hxAgJBZQLJYotAphri2dfAt7Kl298z4BcAs1ukaN6F7Drm48ZDvw+Xd29y4OIV04cJ4y 7no9N1AaKwEWSX+u+1ssHkkaBnJS5eoXbbfQUVFqlwxq5D2FaLCEAPJib/YrtEx0fKk9Ob +h2NRNE+XHiK1JPBxh7JR+GMGz13EFw= ARC-Authentication-Results: i=1; imf17.hostedemail.com; dkim=pass header.d=linux.dev header.s=key1 header.b=nFii2RaA; dmarc=pass (policy=none) header.from=linux.dev; spf=pass (imf17.hostedemail.com: domain of hao.xu@linux.dev designates 95.215.58.249 as permitted sender) smtp.mailfrom=hao.xu@linux.dev ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1693143192; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=/w6lIGuCSX5M2SzS7SE+A2P7DaEhoFOZKnfxuRd6M0g=; b=bcnEcSORWntpT1NkQklGaBceFRVrUxTC1/2arn0aDquQYwbbltyGaiMfRk8tD78vhDLayO dhRErs57SPzJkA8dwW9eWxhW7m++DNrieLAr5Pa38xsDTLu0YCoCWwD7boiuKQIGbercz7 xteFgi5n8wjUmL9sAC4avYN/ZP+UBBo= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1693143191; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=/w6lIGuCSX5M2SzS7SE+A2P7DaEhoFOZKnfxuRd6M0g=; b=nFii2RaAVtERxLk40QaUcpRmI8KsgMix1y0E+FJbochLiKUgvfCEHVlGKzl74Le3vQdKIX Ic8HKxNSkSYAWoFe69ooiMlQ7zn66y3ibRq5sWqNObX5lM32Ml0OMzA1739KowhZg9B8i9 pdpKOlIaZIJj3teGeY/OKxpoMDEzjMc= From: Hao Xu <hao.xu@linux.dev> To: io-uring@vger.kernel.org, Jens Axboe <axboe@kernel.dk> Cc: Dominique Martinet <asmadeus@codewreck.org>, Pavel Begunkov <asml.silence@gmail.com>, Christian Brauner <brauner@kernel.org>, Alexander Viro <viro@zeniv.linux.org.uk>, Stefan Roesch <shr@fb.com>, Clay Harris <bugs@claycon.org>, Dave Chinner <david@fromorbit.com>, "Darrick J . Wong" <djwong@kernel.org>, linux-fsdevel@vger.kernel.org, linux-xfs@vger.kernel.org, linux-ext4@vger.kernel.org, linux-cachefs@redhat.com, ecryptfs@vger.kernel.org, linux-nfs@vger.kernel.org, linux-unionfs@vger.kernel.org, bpf@vger.kernel.org, netdev@vger.kernel.org, linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, linux-btrfs@vger.kernel.org, codalist@coda.cs.cmu.edu, linux-f2fs-devel@lists.sourceforge.net, cluster-devel@redhat.com, linux-mm@kvack.org, linux-nilfs@vger.kernel.org, devel@lists.orangefs.org, linux-cifs@vger.kernel.org, samba-technical@lists.samba.org, linux-mtd@lists.infradead.org, Wanpeng Li <wanpengli@tencent.com> Subject: [PATCH 05/11] vfs: add file_pos_unlock() for io_uring usage Date: Sun, 27 Aug 2023 21:28:29 +0800 Message-Id: <20230827132835.1373581-6-hao.xu@linux.dev> In-Reply-To: <20230827132835.1373581-1-hao.xu@linux.dev> References: <20230827132835.1373581-1-hao.xu@linux.dev> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Rspam-User: X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: B85474001D X-Stat-Signature: uw6o4pfbymsu9n7o47jt9cuqy144b9a5 X-HE-Tag: 1693143192-281442 X-HE-Meta: U2FsdGVkX1+Vsrw1OEQmZrWMNUlH8K4gB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ISqe2zJwMrtYD1czkwvzmjDFjWYxK7LYlQsMOIWxL7HryztA3oGBChKiSgIESu/efYJBYAtkNYiGtt8MQ7Uhj+44ZDPDVygHlDGfwmOtEtZnsQtLA02AHzHZIzjpGwSxTOhIVi6iu3lQ3Mul/npvMREK0M2QqWbX7scAy4kzXDj+x5H4JmAenZTY7BfyWDlC8eFjG5atggBCbYhozuPHNeG+IL7q8= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> |
Series |
io_uring getdents
|
expand
|
diff --git a/include/linux/file.h b/include/linux/file.h index bcc6ba0aec50..a179f4794341 100644 --- a/include/linux/file.h +++ b/include/linux/file.h @@ -81,6 +81,11 @@ static inline void fdput_pos(struct fd f) fdput(f); } +static inline void file_pos_unlock(struct file *file) +{ + __f_unlock_pos(file); +} + extern int file_pos_lock_nowait(struct file *file, bool nowait); DEFINE_CLASS(fd, struct fd, fdput(_T), fdget(fd), int fd)