summaryrefslogtreecommitdiff
path: root/fs/internal.h
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2020-09-26 17:20:17 -0600
committerJens Axboe <axboe@kernel.dk>2020-12-09 12:03:59 -0700
commite886663cfd029b64a1d8da7efae7014526d884e9 (patch)
tree4de6bc7a526b3105d52c7fafb5f9dfb864fbdda1 /fs/internal.h
parent14587a46646d30d2b4a6b69865682cfe6bbdcd1f (diff)
fs: make do_renameat2() take struct filename
Pass in the struct filename pointers instead of the user string, and update the three callers to do the same. This behaves like do_unlinkat(), which also takes a filename struct and puts it when it is done. Converting callers is then trivial. Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/internal.h')
-rw-r--r--fs/internal.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/internal.h b/fs/internal.h
index a7cd0f64faa4..6fd14ea213c3 100644
--- a/fs/internal.h
+++ b/fs/internal.h
@@ -78,6 +78,8 @@ extern int vfs_path_lookup(struct dentry *, struct vfsmount *,
long do_rmdir(int dfd, struct filename *name);
long do_unlinkat(int dfd, struct filename *name);
int may_linkat(struct path *link);
+int do_renameat2(int olddfd, struct filename *oldname, int newdfd,
+ struct filename *newname, unsigned int flags);
/*
* namespace.c