mirror of
https://github.com/ukui/kernel.git
synced 2026-03-09 10:07:04 -07:00
vfs: open inside ->tmpfile()
This is in preparation for adding tmpfile support to fuse, which requires that the tmpfile creation and opening are done as a single operation. Replace the 'struct dentry *' argument of i_op->tmpfile with 'struct file *'. Call finish_open_simple() as the last thing in ->tmpfile() instances (may be omitted in the error case). Change d_tmpfile() argument to 'struct file *' as well to make callers more readable. Reviewed-by: Christian Brauner (Microsoft) <brauner@kernel.org> Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
#include <linux/wait.h>
|
||||
|
||||
struct path;
|
||||
struct file;
|
||||
struct vfsmount;
|
||||
|
||||
/*
|
||||
@@ -250,7 +251,7 @@ extern struct dentry * d_make_root(struct inode *);
|
||||
/* <clickety>-<click> the ramfs-type tree */
|
||||
extern void d_genocide(struct dentry *);
|
||||
|
||||
extern void d_tmpfile(struct dentry *, struct inode *);
|
||||
extern void d_tmpfile(struct file *, struct inode *);
|
||||
|
||||
extern struct dentry *d_find_alias(struct inode *);
|
||||
extern void d_prune_aliases(struct inode *);
|
||||
|
||||
Reference in New Issue
Block a user