summaryrefslogtreecommitdiff
path: root/fs/overlayfs/overlayfs.h
diff options
context:
space:
mode:
authorAmir Goldstein <amir73il@gmail.com>2018-05-16 17:35:02 +0300
committerMiklos Szeredi <mszeredi@redhat.com>2018-05-31 11:06:10 +0200
commit471ec5dcf4e712ea81bf431a57c98d4b67416d30 (patch)
treed6e76dcc4899cded83e2bfce352d197fe5cfe1c0 /fs/overlayfs/overlayfs.h
parent6cf00764b0082cefdaf5a36202aceb1ab2470051 (diff)
downloadlwn-471ec5dcf4e712ea81bf431a57c98d4b67416d30.tar.gz
lwn-471ec5dcf4e712ea81bf431a57c98d4b67416d30.zip
ovl: struct cattr cleanups
* Rename to ovl_cattr * Fold ovl_create_real() hardlink argument into struct ovl_cattr * Create macro OVL_CATTR() to initialize struct ovl_cattr from mode Signed-off-by: Amir Goldstein <amir73il@gmail.com> Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'fs/overlayfs/overlayfs.h')
-rw-r--r--fs/overlayfs/overlayfs.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/fs/overlayfs/overlayfs.h b/fs/overlayfs/overlayfs.h
index 1c30d60cc290..aa8286419133 100644
--- a/fs/overlayfs/overlayfs.h
+++ b/fs/overlayfs/overlayfs.h
@@ -349,14 +349,17 @@ extern const struct inode_operations ovl_dir_inode_operations;
struct dentry *ovl_lookup_temp(struct dentry *workdir);
int ovl_cleanup_and_whiteout(struct dentry *workdir, struct inode *dir,
struct dentry *dentry);
-struct cattr {
+struct ovl_cattr {
dev_t rdev;
umode_t mode;
const char *link;
+ struct dentry *hardlink;
};
+
+#define OVL_CATTR(m) (&(struct ovl_cattr) { .mode = (m) })
+
int ovl_create_real(struct inode *dir, struct dentry *newdentry,
- struct cattr *attr,
- struct dentry *hardlink);
+ struct ovl_cattr *attr);
int ovl_cleanup(struct inode *dir, struct dentry *dentry);
/* copy_up.c */