From: ulfalizer.lkml@gmail.com
To: linux-kernel@vger.kernel.org
Cc: linux-doc@vger.kernel.org, corbet@lwn.net, harryxiyou@gmail.com,
jlbec@evilplan.org, ulfalizer@gmail.com,
gregkh@linuxfoundation.org, shane.seymour@hp.com, tj@kernel.org,
bvanassche@acm.org, serue@us.ibm.com
Subject: [PATCH 2/3] sysfs-tagging.txt: fix pre-kernfs references
Date: Wed, 2 Sep 2015 14:34:53 +0200 [thread overview]
Message-ID: <1441197294-11723-3-git-send-email-ulfalizer.lkml@gmail.com> (raw)
In-Reply-To: <1441197294-11723-2-git-send-email-ulfalizer.lkml@gmail.com>
From: Ulf Magnusson <ulfalizer@gmail.com>
- sysfs_dirent is now kernfs_node - see commit 324a56e16e44 ("kernfs:
s/sysfs_dirent/kernfs_node/ and rename its friends accordingly")
- sysfs_super_info is now kernfs_super_info - see commit c525aaddc366
("kernfs: s/sysfs/kernfs/ in various data structures")
- the 's_' prefix was dropped from various fields - see
commit adc5e8b58f48 ("kernfs: drop s_ prefix from kernfs_node members")
Signed-off-by: Ulf Magnusson <ulfalizer@gmail.com>
---
Documentation/filesystems/sysfs-tagging.txt | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/Documentation/filesystems/sysfs-tagging.txt b/Documentation/filesystems/sysfs-tagging.txt
index eb843e4..c7c8e64 100644
--- a/Documentation/filesystems/sysfs-tagging.txt
+++ b/Documentation/filesystems/sysfs-tagging.txt
@@ -17,13 +17,13 @@ the sysfs directory entries we ensure that we don't have conflicts
in the directories and applications only see a limited set of
the network devices.
-Each sysfs directory entry may be tagged with zero or one
-namespaces. A sysfs_dirent is augmented with a void *s_ns. If a
-directory entry is tagged, then sysfs_dirent->s_flags will have a
-flag between KOBJ_NS_TYPE_NONE and KOBJ_NS_TYPES, and s_ns will
-point to the namespace to which it belongs.
+Each sysfs directory entry may be tagged with a namespace via the
+void *ns member of its kernfs_node. If a directory entry is tagged,
+then kernfs_node->flags will have a flag between KOBJ_NS_TYPE_NONE
+and KOBJ_NS_TYPES, and ns will point to the namespace to which it
+belongs.
-Each sysfs superblock's sysfs_super_info contains an array void
+Each sysfs superblock's kernfs_super_info contains an array void
*ns[KOBJ_NS_TYPES]. When a task in a tagging namespace
kobj_nstype first mounts sysfs, a new superblock is created. It
will be differentiated from other sysfs mounts by having its
@@ -31,7 +31,7 @@ s_fs_info->ns[kobj_nstype] set to the new namespace. Note that
through bind mounting and mounts propagation, a task can easily view
the contents of other namespaces' sysfs mounts. Therefore, when a
namespace exits, it will call kobj_ns_exit() to invalidate any
-sysfs_dirent->s_ns pointers pointing to it.
+kernfs_node->ns pointers pointing to it.
Users of this interface:
- define a type in the kobj_ns_type enumeration.
--
2.1.4
next prev parent reply other threads:[~2015-09-02 12:36 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-02 12:34 [PATCH 0/3] Fix some outdated pre-kernfs doc references ulfalizer.lkml
2015-09-02 12:34 ` [PATCH 1/3] sysfs.txt: fix pre-kernfs sysfs_dirent reference ulfalizer.lkml
2015-09-02 12:34 ` ulfalizer.lkml [this message]
2015-09-02 12:34 ` [PATCH 3/3] configfs: " ulfalizer.lkml
2015-09-12 20:15 ` [PATCH 0/3] Fix some outdated pre-kernfs doc references Jonathan Corbet
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1441197294-11723-3-git-send-email-ulfalizer.lkml@gmail.com \
--to=ulfalizer.lkml@gmail.com \
--cc=bvanassche@acm.org \
--cc=corbet@lwn.net \
--cc=gregkh@linuxfoundation.org \
--cc=harryxiyou@gmail.com \
--cc=jlbec@evilplan.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=serue@us.ibm.com \
--cc=shane.seymour@hp.com \
--cc=tj@kernel.org \
--cc=ulfalizer@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®