|
@@ -350,6 +350,13 @@ static inline void ovl_copyattr(struct inode *from, struct inode *to)
|
|
to->i_ctime = from->i_ctime;
|
|
to->i_ctime = from->i_ctime;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+static inline void ovl_copyflags(struct inode *from, struct inode *to)
|
|
|
|
+{
|
|
|
|
+ unsigned int mask = S_SYNC | S_IMMUTABLE | S_APPEND | S_NOATIME;
|
|
|
|
+
|
|
|
|
+ inode_set_flags(to, from->i_flags & mask, mask);
|
|
|
|
+}
|
|
|
|
+
|
|
/* dir.c */
|
|
/* dir.c */
|
|
extern const struct inode_operations ovl_dir_inode_operations;
|
|
extern const struct inode_operations ovl_dir_inode_operations;
|
|
int ovl_cleanup_and_whiteout(struct dentry *workdir, struct inode *dir,
|
|
int ovl_cleanup_and_whiteout(struct dentry *workdir, struct inode *dir,
|