ovl: factor out ovl_check_origin_fh()
authorAmir Goldstein <amir73il@gmail.com>
Tue, 24 Oct 2017 12:12:15 +0000 (15:12 +0300)
committerMiklos Szeredi <mszeredi@redhat.com>
Wed, 24 Jan 2018 09:19:35 +0000 (10:19 +0100)
commit2e1a532883cf77f01031bef4b83d864a46c1bed0
tree04a0c3ba65b78d3a88c12ce64ca6948a4b96e528
parentd583ed7d138825fd9469d5419e23230ad39173e8
ovl: factor out ovl_check_origin_fh()

Re-factor ovl_check_origin() and ovl_get_origin(), so origin fh xattr is
read from upper inode only once during lookup with multiple lower layers
and only once when verifying index entry origin.

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