Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1121250ybv; Thu, 20 Feb 2020 13:40:47 -0800 (PST) X-Google-Smtp-Source: APXvYqy4cP8+a0xeJIU6dqLsHWXY2rAeHdpHjDRrTAOkDbjn/2ZJIXFUmEtsJeFA34tuy79wXd71 X-Received: by 2002:a05:6830:1294:: with SMTP id z20mr24630179otp.60.1582234847273; Thu, 20 Feb 2020 13:40:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582234847; cv=none; d=google.com; s=arc-20160816; b=UVc0Xyv0zzeNWxOrOoY7zmzijQh3NwCohb4NHATu7zMvdSKovkJT9BpvojtaLdnZwM D7zqjzqIsgSbzDTvDSq/i9G7qEWpaGKtOxunM4YiPKsvxYrbsmzjB3D9YW1k2HA9jcjH DX9aACBM2MX6X+QyP0YMBGgOeaibA86kvmyDeodp6dns/KY6TgtHC81siaEHNCzZxdoo g8dS+7xgjb2YVuSikC2etcSjnCmsL0PrTgFPkBH66mzRnkjyFYDMCM3dDLGdi/JwLlvn NIBHxPWvzRdSQmfXkwPx0gmZ96sHM3+Xd//K/09yJebdlagDz0/joulAKW4pdywDgXJM 4QCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=SdMXiwQ30NtFiXHtEOV93iERJEGx/98ZsoX3dNQE1dU=; b=fHaNfeXLdMPr11pkT6Hq36+dnoatCARMKs+pKO1ZMCa042IpNeb4Fk9rg8+DUl6xCX WVNDZs1AWxt/O/c+x9bVvmFCknYPsNJvlQ8QlOie1XOM2sDlFfbY98O39ux/ox5iPrr3 Kj1r9i0HvOOMx7wAtd/9EpX4pGt8c/Wa6yfkixFeaB3QxcqHZWYQedXKFM3Sllthy7Bd y2VW/VyzPVSzARkd+27P6W4R17llxAUZr+uHYUSkDxi6nYVqp6GMHPcDIXxVskf/NRv2 bsfSFbMZ/f8eK7e1k7KGRxbYlDWkUXza8IusrfV2o1otVQc6OD86XiQuHH0RRDz3R1Vy 2eYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tycho-ws.20150623.gappssmtp.com header.s=20150623 header.b=fPbfSEvN; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p26si329592oto.240.2020.02.20.13.40.34; Thu, 20 Feb 2020 13:40:47 -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=@tycho-ws.20150623.gappssmtp.com header.s=20150623 header.b=fPbfSEvN; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729140AbgBTVkc (ORCPT + 99 others); Thu, 20 Feb 2020 16:40:32 -0500 Received: from mail-pj1-f67.google.com ([209.85.216.67]:54677 "EHLO mail-pj1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728992AbgBTVkb (ORCPT ); Thu, 20 Feb 2020 16:40:31 -0500 Received: by mail-pj1-f67.google.com with SMTP id dw13so44402pjb.4 for ; Thu, 20 Feb 2020 13:40:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tycho-ws.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=SdMXiwQ30NtFiXHtEOV93iERJEGx/98ZsoX3dNQE1dU=; b=fPbfSEvNBWFRQJpPerpnQOFFuOaBUykwN5G3Mb0OQ7ESFAV1G/GfvLFLh4E3x3/orj QZCmolJ9+ZBm5kA1lEKjya5v3YRWAUVVCgsmHJw/YllODFWn0M7bvPEZKPWO774L79om s55nEDeEVHyK7FWNTHPn5gY3+LQCa6Bo1B7oaST1i7SlzC8KFee1OwVT9Ej3jyChQNsS j7X2PGbnxZTx1QHEbBQkl0Fz6gXj4H5hsbWYgzwl/xDvjDJORlmfK/IRMcOaxh7BRY0t 0hqAwWZ6QzKEjbrElt6rupJuyeLob1dQGRK0IGhyLqaJtqJlFOiVp+fNqn0EVfy+KHLd wZiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=SdMXiwQ30NtFiXHtEOV93iERJEGx/98ZsoX3dNQE1dU=; b=Vg+2DXZnLv8pYqH0tFUqeZbaAI8h4FEkjH8NZucD1z7/Co5kk3ihSaLQhFVE/UxDGP uVcFouJD6I64Zk/Imb0PRdvX/oTTWaFmyAuiLGNsQGSUdz/x7daqv6j9up40CFf9sTZ5 HnbO2s0LsKv98p2ft+30b3Ysh+rcWnomrgZsywuQiDs1M6tx0vzjZ1ZDkjwzeKroOdId RDphlCObk5G9dGU6v2nuPqVa9Nvp0AigHJTR/Ptd8h/42RNvd2USj3hQu28vS6UZtiDb rSwWO7IdfZnyb5+VHyGOBTwsiOFtls7PPngWvdAW7esfHafyFj+TkzQ8meKjUpBCni13 lrng== X-Gm-Message-State: APjAAAUPCKQCFljMQezQBlkiXz8n4uXhjsiGsDgrWwyeWIsGZ9+X9xpA l0B9mZk6cKHDD8ZeLpMAdgA9Zw== X-Received: by 2002:a17:90a:ac0e:: with SMTP id o14mr6116479pjq.11.1582234830293; Thu, 20 Feb 2020 13:40:30 -0800 (PST) Received: from cisco.hsd1.co.comcast.net ([2001:420:c0c8:1008::8b3]) by smtp.gmail.com with ESMTPSA id h3sm386289pjs.0.2020.02.20.13.40.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Feb 2020 13:40:29 -0800 (PST) From: Tycho Andersen To: Jonathan Corbet Cc: linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Tycho Andersen Subject: [PATCH] doc: fix filesystems/porting.rst whitespace Date: Thu, 20 Feb 2020 14:40:09 -0700 Message-Id: <20200220214009.11645-1-tycho@tycho.ws> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org If we start with spaces instead of tabs, rst seems to get confused and italicize some things (presumably because of the `*'s). Instead, let's switch to using leading tabs as we do elsewhere in the file. Signed-off-by: Tycho Andersen --- Documentation/filesystems/porting.rst | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/Documentation/filesystems/porting.rst b/Documentation/filesystems/porting.rst index f18506083ced..898e1d0c6e98 100644 --- a/Documentation/filesystems/porting.rst +++ b/Documentation/filesystems/porting.rst @@ -57,12 +57,13 @@ Turn your foo_read_super() into a function that would return 0 in case of success and negative number in case of error (-EINVAL unless you have more informative error value to report). Call it foo_fill_super(). Now declare:: - int foo_get_sb(struct file_system_type *fs_type, - int flags, const char *dev_name, void *data, struct vfsmount *mnt) - { - return get_sb_bdev(fs_type, flags, dev_name, data, foo_fill_super, - mnt); - } + int foo_get_sb(struct file_system_type *fs_type, + int flags, const char *dev_name, void *data, + struct vfsmount *mnt) + { + return get_sb_bdev(fs_type, flags, dev_name, data, foo_fill_super, + mnt); + } (or similar with s/bdev/nodev/ or s/bdev/single/, depending on the kind of filesystem). @@ -181,10 +182,10 @@ can be used as examples of very different filesystems. iget4() and the read_inode2 callback have been superseded by iget5_locked() which has the following prototype:: - struct inode *iget5_locked(struct super_block *sb, unsigned long ino, - int (*test)(struct inode *, void *), - int (*set)(struct inode *, void *), - void *data); + struct inode *iget5_locked(struct super_block *sb, unsigned long ino, + int (*test)(struct inode *, void *), + int (*set)(struct inode *, void *), + void *data); 'test' is an additional function that can be used when the inode number is not sufficient to identify the actual file object. 'set' -- 2.20.1