]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
ovl: move include of ovl_entry.h into overlayfs.h
authorAmir Goldstein <amir73il@gmail.com>
Mon, 30 Oct 2017 11:33:11 +0000 (13:33 +0200)
committerMiklos Szeredi <mszeredi@redhat.com>
Thu, 9 Nov 2017 09:23:27 +0000 (10:23 +0100)
Most overlayfs c files already explicitly include ovl_entry.h
to use overlay entry struct definitions and upcoming changes
are going to require even more c files to include this header.

All overlayfs c files include overlayfs.h and overlayfs.h itself
refers to some structs defined in ovl_entry.h, so it seems more
logic to include ovl_entry.h from overlayfs.h than from c files.

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/overlayfs/copy_up.c
fs/overlayfs/inode.c
fs/overlayfs/namei.c
fs/overlayfs/overlayfs.h
fs/overlayfs/super.c
fs/overlayfs/util.c

index d07ad7bbd04146a87b0b3f22c7094eb4a93043e6..eb3b8d39fb6161f1c9de25840f9e608779b0cff7 100644 (file)
@@ -22,7 +22,6 @@
 #include <linux/ratelimit.h>
 #include <linux/exportfs.h>
 #include "overlayfs.h"
-#include "ovl_entry.h"
 
 #define OVL_COPY_UP_CHUNK_SIZE (1 << 20)
 
index e5a20fd3cbd4d415f9d0fc0f521de185f03e8c7c..52aaa8530710647b61b7d2e60f0fa0e8b31d1d2a 100644 (file)
@@ -14,7 +14,6 @@
 #include <linux/posix_acl.h>
 #include <linux/ratelimit.h>
 #include "overlayfs.h"
-#include "ovl_entry.h"
 
 int ovl_setattr(struct dentry *dentry, struct iattr *attr)
 {
index a12dc10bf726351a4a47a75f92b66d3b87043174..505a4b8902fc7191badc908563bbcd4cfaa102ac 100644 (file)
@@ -15,7 +15,6 @@
 #include <linux/mount.h>
 #include <linux/exportfs.h>
 #include "overlayfs.h"
-#include "ovl_entry.h"
 
 struct ovl_lookup_data {
        struct qstr name;
index d53157ccf0d7a229ae640e48fdad8d40c062b10e..1cf3bdd193a474277a9d0e45b0f3cc82855eb198 100644 (file)
@@ -9,6 +9,7 @@
 
 #include <linux/kernel.h>
 #include <linux/uuid.h>
+#include "ovl_entry.h"
 
 enum ovl_path_type {
        __OVL_PATH_UPPER        = (1 << 0),
index 8d82a1cb655f4c171270edb51aa2926753e01588..e3d49e965224f4e4623677b27c3d50d119f11a10 100644 (file)
@@ -18,7 +18,6 @@
 #include <linux/seq_file.h>
 #include <linux/posix_acl_xattr.h>
 #include "overlayfs.h"
-#include "ovl_entry.h"
 
 MODULE_AUTHOR("Miklos Szeredi <miklos@szeredi.hu>");
 MODULE_DESCRIPTION("Overlay filesystem");
index 51ca8bd160095684dc33eed27c6d99ae3a2eba0f..9158d17bb3200134de2c04d34b2fed566f1e93bc 100644 (file)
@@ -17,7 +17,6 @@
 #include <linux/namei.h>
 #include <linux/ratelimit.h>
 #include "overlayfs.h"
-#include "ovl_entry.h"
 
 int ovl_want_write(struct dentry *dentry)
 {