ovl: Copy up underlying inode's ->i_mode to overlay inode
[firefly-linux-kernel-4.4.55.git] / fs / overlayfs / overlayfs.h
index e17154aeaae4761ca8ec466b96afe913cd40c322..735e1d49b30116ad049e011f8b9fb1d6e4649710 100644 (file)
@@ -181,6 +181,7 @@ static inline void ovl_copyattr(struct inode *from, struct inode *to)
 {
        to->i_uid = from->i_uid;
        to->i_gid = from->i_gid;
+       to->i_mode = from->i_mode;
 }
 
 /* dir.c */