Linux kernel source tree
Find a file
Tejun Heo fe0f726c9f kernfs: combine ino/id lookup functions into kernfs_find_and_get_node_by_id()
kernfs_find_and_get_node_by_ino() looks the kernfs_node matching the
specified ino.  On top of that, kernfs_get_node_by_id() and
kernfs_fh_get_inode() implement full ID matching by testing the rest
of ID.

On surface, confusingly, the two are slightly different in that the
latter uses 0 gen as wildcard while the former doesn't - does it mean
that the latter can't uniquely identify inodes w/ 0 gen?  In practice,
this is a distinction without a difference because generation number
starts at 1.  There are no actual IDs with 0 gen, so it can always
safely used as wildcard.

Let's simplify the code by renaming kernfs_find_and_get_node_by_ino()
to kernfs_find_and_get_node_by_id(), moving all lookup logics into it,
and removing now unnecessary kernfs_get_node_by_id().

Signed-off-by: Tejun Heo <tj@kernel.org>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-11-12 08:18:04 -08:00
arch ARM: SoC fixes 2019-10-05 17:18:43 -07:00
block
certs
crypto
Documentation
drivers ARM: SoC fixes 2019-10-05 17:18:43 -07:00
fs kernfs: combine ino/id lookup functions into kernfs_find_and_get_node_by_id() 2019-11-12 08:18:04 -08:00
include kernfs: combine ino/id lookup functions into kernfs_find_and_get_node_by_id() 2019-11-12 08:18:04 -08:00
init
ipc
kernel kernfs: combine ino/id lookup functions into kernfs_find_and_get_node_by_id() 2019-11-12 08:18:04 -08:00
lib
LICENSES
mm
net kernfs: convert kernfs_node->id from union kernfs_node_id to u64 2019-11-12 08:18:03 -08:00
samples
scripts
security
sound
tools kselftests: cgroup: Avoid the reuse of fd after it is deallocated 2019-11-12 07:33:59 -08:00
usr
virt
.clang-format
.cocciconfig
.get_maintainer.ignore
.gitattributes
.gitignore
.mailmap
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS
Makefile Linux 5.4-rc2 2019-10-06 14:27:30 -07:00
README

Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.