summaryrefslogtreecommitdiff
path: root/fs/overlayfs/overlayfs.h
diff options
context:
space:
mode:
authorMiklos Szeredi <mszeredi@redhat.com>2018-05-16 17:51:25 +0300
committerMiklos Szeredi <mszeredi@redhat.com>2018-05-31 12:06:11 +0300
commit95a1c8153ad8bc99e7c4b90257f20b4f0474a9a0 (patch)
treeda1fadaf2b5e9c96cab3225e596641595f0600ad /fs/overlayfs/overlayfs.h
parent471ec5dcf4e712ea81bf431a57c98d4b67416d30 (diff)
downloadlinux-95a1c8153ad8bc99e7c4b90257f20b4f0474a9a0.tar.xz
ovl: return dentry from ovl_create_real()
Al Viro suggested to simplify callers of ovl_create_real() by returning the created dentry (or ERR_PTR) from ovl_create_real(). Suggested-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'fs/overlayfs/overlayfs.h')
-rw-r--r--fs/overlayfs/overlayfs.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/overlayfs/overlayfs.h b/fs/overlayfs/overlayfs.h
index aa8286419133..6bbde513e068 100644
--- a/fs/overlayfs/overlayfs.h
+++ b/fs/overlayfs/overlayfs.h
@@ -358,8 +358,8 @@ struct ovl_cattr {
#define OVL_CATTR(m) (&(struct ovl_cattr) { .mode = (m) })
-int ovl_create_real(struct inode *dir, struct dentry *newdentry,
- struct ovl_cattr *attr);
+struct dentry *ovl_create_real(struct inode *dir, struct dentry *newdentry,
+ struct ovl_cattr *attr);
int ovl_cleanup(struct inode *dir, struct dentry *dentry);
/* copy_up.c */