From: Konstantin Khlebnikov Date: Sun, 31 Jan 2016 13:22:16 +0000 (+0300) Subject: ovl: fix working on distributed fs as lower layer X-Git-Tag: firefly_0821_release~176^2~4^2~51^2~63 X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=455fadecd1f79dcdef31a1c3b5d85d28f6e07081;p=firefly-linux-kernel-4.4.55.git ovl: fix working on distributed fs as lower layer commit b5891cfab08fe3144a616e8e734df7749fb3b7d0 upstream. This adds missing .d_select_inode into alternative dentry_operations. Signed-off-by: Konstantin Khlebnikov Fixes: 7c03b5d45b8e ("ovl: allow distributed fs as lower layer") Fixes: 4bacc9c9234c ("overlayfs: Make f_path always point to the overlay and f_inode to the underlay") Reviewed-by: Nikolay Borisov Tested-by: Nikolay Borisov Signed-off-by: Miklos Szeredi Signed-off-by: Greg Kroah-Hartman --- diff --git a/fs/overlayfs/super.c b/fs/overlayfs/super.c index 27ce68f36610..000b2ed05c29 100644 --- a/fs/overlayfs/super.c +++ b/fs/overlayfs/super.c @@ -324,6 +324,7 @@ static const struct dentry_operations ovl_dentry_operations = { static const struct dentry_operations ovl_reval_dentry_operations = { .d_release = ovl_dentry_release, + .d_select_inode = ovl_d_select_inode, .d_revalidate = ovl_dentry_revalidate, .d_weak_revalidate = ovl_dentry_weak_revalidate, };