]> git.baikalelectronics.ru Git - kernel.git/commit
ovl: consistent i_ino for non-samefs with xino
authorAmir Goldstein <amir73il@gmail.com>
Fri, 16 Mar 2018 08:39:37 +0000 (10:39 +0200)
committerMiklos Szeredi <mszeredi@redhat.com>
Thu, 12 Apr 2018 10:04:50 +0000 (12:04 +0200)
commit1737b8ac3b374de82ba44697e8e7bfec8a5c56d6
treeb402f00c36a27b8ce52059adea6925de10929c35
parent365364a9725dae4e95801eb28e93f3c1b255a4ea
ovl: consistent i_ino for non-samefs with xino

When overlay layers are not all on the same fs, but all inode numbers
of underlying fs do not use the high 'xino' bits, overlay st_ino values
are constant and persistent.

In that case, set i_ino value to the same value as st_ino for nfsd
readdirplus validator.

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/overlayfs/export.c
fs/overlayfs/inode.c
fs/overlayfs/namei.c
fs/overlayfs/overlayfs.h