]> git.ipfire.org Git - thirdparty/linux.git/commit
ovl: fix wrong detection of 32bit inode numbers
authorAmir Goldstein <amir73il@gmail.com>
Sun, 8 Mar 2026 11:02:21 +0000 (12:02 +0100)
committerAmir Goldstein <amir73il@gmail.com>
Tue, 24 Mar 2026 15:17:26 +0000 (16:17 +0100)
commit53a7c171e9dd833f0a96b545adcb89bd57387239
tree94941aa5ce520be32f42f7c1190f678fd3e0d6e3
parentf338e77383789c0cae23ca3d48adcc5e9e137e3c
ovl: fix wrong detection of 32bit inode numbers

The implicit FILEID_INO32_GEN encoder was changed to be explicit,
so we need to fix the detection.

When mounting overlayfs with upperdir and lowerdir on different ext4
filesystems, the expected kmsg log is:

  overlayfs: "xino" feature enabled using 32 upper inode bits.

But instead, since the regressing commit, the kmsg log was:

  overlayfs: "xino" feature enabled using 2 upper inode bits.

Fixes: e21fc2038c1b9 ("exportfs: make ->encode_fh() a mandatory method for NFS export")
Cc: stable@vger.kernel.org # v6.7+
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
fs/overlayfs/util.c