3 * Copyright (C) 2011 Novell Inc.
4 * Copyright (C) 2016 Red Hat, Inc.
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License version 2 as published by
8 * the Free Software Foundation.
15 bool default_permissions;
19 /* private information held for overlayfs's superblock */
21 struct vfsmount *upper_mnt;
23 struct vfsmount **lower_mnt;
24 struct dentry *workdir;
26 /* pathnames of lower and upper dirs, for show_options */
27 struct ovl_config config;
28 /* creds of process who forced instantiation of super block */
29 const struct cred *creator_cred;
32 wait_queue_head_t copyup_wq;
33 /* sb common to all layers */
34 struct super_block *same_sb;
37 /* private information held for every overlayfs dentry */
39 struct dentry *__upperdentry;
40 struct ovl_dir_cache *cache;
52 struct path lowerstack[];
55 struct ovl_entry *ovl_alloc_entry(unsigned int numlower);
57 static inline struct dentry *ovl_upperdentry_dereference(struct ovl_entry *oe)
59 return lockless_dereference(oe->__upperdentry);