ovl: simplify ovl_same_sb() helper
[sfrench/cifs-2.6.git] / fs / overlayfs / ovl_entry.h
index 64baf04cdede3ca045a0b3905dc5082ff79bdb1c..9a785702a2a41c94ae0201a9f6bfdf9a606beb40 100644 (file)
@@ -71,10 +71,15 @@ struct ovl_fs {
        struct inode *workbasedir_trap;
        struct inode *workdir_trap;
        struct inode *indexdir_trap;
-       /* Inode numbers in all layers do not use the high xino_bits */
-       unsigned int xino_bits;
+       /* -1: disabled, 0: same fs, 1..32: number of unused ino bits */
+       int xino_mode;
 };
 
+static inline struct ovl_fs *OVL_FS(struct super_block *sb)
+{
+       return (struct ovl_fs *)sb->s_fs_info;
+}
+
 /* private information held for every overlayfs dentry */
 struct ovl_entry {
        union {