summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRay Lee <hburaylee@gmail.com>2026-09-08 21:01:03 +0800
committerChristian Brauner <brauner@kernel.org>2026-09-10 10:12:41 +0200
commitbfe240aab4a1be5270bb8560d6895fd9550b8719 (patch)
treed5ff15a250247cf9667fc3f1eb45871a5b7de0ed
parent21a62663d473475db9f05c108e84f035b33e8484 (diff)
downloadlinux-next-bfe240aab4a1be5270bb8560d6895fd9550b8719.tar.gz
linux-next-bfe240aab4a1be5270bb8560d6895fd9550b8719.zip
squashfs: fix inode number description in documentation
The documentation incorrectly described the inode identifier as a 48-bit number. In reality it is a 64-bit integer where the upper 48 bits hold the location of the compressed metadata block and the lower 16 bits hold the byte offset into the uncompressed block. Signed-off-by: Ray Lee <hburaylee@gmail.com> Link: https://patch.msgid.link/20260908130103.272230-1-hburaylee@gmail.com Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
-rw-r--r--Documentation/filesystems/squashfs.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/Documentation/filesystems/squashfs.rst b/Documentation/filesystems/squashfs.rst
index 45653b3228f9..d6397961d16b 100644
--- a/Documentation/filesystems/squashfs.rst
+++ b/Documentation/filesystems/squashfs.rst
@@ -177,9 +177,9 @@ or if the compressed block was larger than the uncompressed block.
Inodes are packed into the metadata blocks, and are not aligned to block
boundaries, therefore inodes overlap compressed blocks. Inodes are identified
-by a 48-bit number which encodes the location of the compressed metadata block
-containing the inode, and the byte offset into that block where the inode is
-placed (<block, offset>).
+by a 64-bit number: the upper 48 bits encode the location of the compressed
+metadata block containing the inode, and the lower 16 bits give the byte offset
+into that block where the inode is placed (<block, offset>).
To maximise compression there are different inodes for each file type
(regular file, directory, device, etc.), the inode contents and length