summaryrefslogtreecommitdiff
path: root/fs/eventpoll.c
diff options
context:
space:
mode:
authorAmir Goldstein <amir73il@gmail.com>2019-11-19 15:36:14 +0200
committerMiklos Szeredi <mszeredi@redhat.com>2020-03-17 15:04:21 +0100
commit300b124fcf6ad2cd99a7b721e0f096785e0a3134 (patch)
treeb2658cd7613e966f94749fb843b5216d80c05423 /fs/eventpoll.c
parentfb33c6510d5595144d585aa194d377cf74d31911 (diff)
downloadlwn-300b124fcf6ad2cd99a7b721e0f096785e0a3134.tar.gz
lwn-300b124fcf6ad2cd99a7b721e0f096785e0a3134.zip
ovl: fix value of i_ino for lower hardlink corner case
Commit 6dde1e42f497 ("ovl: make i_ino consistent with st_ino in more cases"), relaxed the condition nfs_export=on in order to set the value of i_ino to xino map of real ino. Specifically, it also relaxed the pre-condition that index=on for consistent i_ino. This opened the corner case of lower hardlink in ovl_get_inode(), which calls ovl_fill_inode() with ino=0 and then ovl_init_inode() is called to set i_ino to lower real ino without the xino mapping. Pass the correct values of ino;fsid in this case to ovl_fill_inode(), so it can initialize i_ino correctly. Fixes: 6dde1e42f497 ("ovl: make i_ino consistent with st_ino in more ...") Signed-off-by: Amir Goldstein <amir73il@gmail.com> Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'fs/eventpoll.c')
0 files changed, 0 insertions, 0 deletions