]> asedeno.scripts.mit.edu Git - linux.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)
commit12574a9f4c9cc9d8d6fd9078cbb8ec7d3e9ed46b
treeb402f00c36a27b8ce52059adea6925de10929c35
parente487d889b7e3e8ec4091eb83bc4f7e67c7f05e27
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