From patchwork Wed Jul 19 11:10:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: huzhi001@208suo.com X-Patchwork-Id: 13318800 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id F17A1C001DC for ; Wed, 19 Jul 2023 11:10:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229881AbjGSLKb (ORCPT ); Wed, 19 Jul 2023 07:10:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45056 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230384AbjGSLK2 (ORCPT ); Wed, 19 Jul 2023 07:10:28 -0400 Received: from mail.208.org (unknown [183.242.55.162]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B3B7C197 for ; Wed, 19 Jul 2023 04:10:27 -0700 (PDT) Received: from mail.208.org (email.208.org [127.0.0.1]) by mail.208.org (Postfix) with ESMTP id 4R5Y5D2KSczBRDrf for ; Wed, 19 Jul 2023 19:10:24 +0800 (CST) Authentication-Results: mail.208.org (amavisd-new); dkim=pass reason="pass (just generated, assumed good)" header.d=208.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=208.org; h= content-transfer-encoding:content-type:message-id:user-agent :references:in-reply-to:subject:to:from:date:mime-version; s= dkim; t=1689765024; x=1692357025; bh=mhF1ILjox9N5+ynKfNrAuyFUxiw hKqI6nL3g6Yq0YZI=; b=p5je57100OQ9j4vXSocxpSwAw0jWZpXybJzAh34nmSI wEKVHjBGJ08P1ZRQ8tiKbDoSxTjt9jXnHPF+p+/ROu9vbbCQ/cWi+nZeVdtfSR72 kVSqZSX9rQKxqHbiB+Ob3L+0MGI5xz0eXHQWbBw8g/mL4Am2JvpfN9pCmQAwbupg 7o9PZ3qOZSEIJa65a8A0pNPnUGiPlFQhSeXvEZy3+O/XDi0/RpZQv4kolnW2abFf 5VoNk5Q49ZU+PhyZ/w0DYQw5DXpjFf09co8xh/keLKCRsQpJXBfZ6N1RTB4ENMNi m2wKEgY19/M/1KH19g5U7oIz7fWc5FHvbBBnAbdtvBA== X-Virus-Scanned: amavisd-new at mail.208.org Received: from mail.208.org ([127.0.0.1]) by mail.208.org (mail.208.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id lDafqjEJ6O1w for ; Wed, 19 Jul 2023 19:10:24 +0800 (CST) Received: from localhost (email.208.org [127.0.0.1]) by mail.208.org (Postfix) with ESMTPSA id 4R5Y5C6yvRzBR7Zc; Wed, 19 Jul 2023 19:10:23 +0800 (CST) MIME-Version: 1.0 Date: Wed, 19 Jul 2023 19:10:23 +0800 From: huzhi001@208suo.com To: xiubli@redhat.com, idryomov@gmail.com Cc: jlayton@kernel.org, ceph-devel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] netfs: Fix errors in cache.h The following checkpatch errors are removed: ERROR: "foo* bar" should be "foo *bar" ERROR: "foo* bar" should be "foo *bar" ERROR: "foo* bar" should be "foo *bar" ERROR: "foo* bar" should be "foo *bar" ERROR: "foo* bar" should be "foo *bar" In-Reply-To: References: User-Agent: Roundcube Webmail Message-ID: <071ee91b1fade5bc4de45f3e33f45f5c@208suo.com> X-Sender: huzhi001@208suo.com Precedence: bulk List-ID: X-Mailing-List: ceph-devel@vger.kernel.org Signed-off-by: ZhiHu --- fs/ceph/cache.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) void ceph_fscache_use_cookie(struct inode *inode, bool will_modify); void ceph_fscache_unuse_cookie(struct inode *inode, bool update); @@ -76,13 +76,13 @@ static inline void ceph_fscache_note_page_release(struct inode *inode) fscache_note_page_release(ceph_fscache_cookie(ci)); } #else /* CONFIG_CEPH_FSCACHE */ -static inline int ceph_fscache_register_fs(struct ceph_fs_client* fsc, +static inline int ceph_fscache_register_fs(struct ceph_fs_client *fsc, struct fs_context *fc) { return 0; } -static inline void ceph_fscache_unregister_fs(struct ceph_fs_client* fsc) +static inline void ceph_fscache_unregister_fs(struct ceph_fs_client *fsc) { } @@ -90,7 +90,7 @@ static inline void ceph_fscache_register_inode_cookie(struct inode *inode) { } -static inline void ceph_fscache_unregister_inode_cookie(struct ceph_inode_info* ci) +static inline void ceph_fscache_unregister_inode_cookie(struct ceph_inode_info *ci) { } diff --git a/fs/ceph/cache.h b/fs/ceph/cache.h index dc502daac49a..b9fb1d1b21a1 100644 --- a/fs/ceph/cache.h +++ b/fs/ceph/cache.h @@ -14,11 +14,11 @@ #ifdef CONFIG_CEPH_FSCACHE #include -int ceph_fscache_register_fs(struct ceph_fs_client* fsc, struct fs_context *fc); -void ceph_fscache_unregister_fs(struct ceph_fs_client* fsc); +int ceph_fscache_register_fs(struct ceph_fs_client *fsc, struct fs_context *fc); +void ceph_fscache_unregister_fs(struct ceph_fs_client *fsc); void ceph_fscache_register_inode_cookie(struct inode *inode); -void ceph_fscache_unregister_inode_cookie(struct ceph_inode_info* ci); +void ceph_fscache_unregister_inode_cookie(struct ceph_inode_info *ci);