|
@@ -2422,7 +2422,10 @@ extern struct file *filp_open(const char *, int, umode_t);
|
|
|
extern struct file *file_open_root(struct dentry *, struct vfsmount *,
|
|
|
const char *, int, umode_t);
|
|
|
extern struct file * dentry_open(const struct path *, int, const struct cred *);
|
|
|
-extern struct file *filp_clone_open(struct file *);
|
|
|
+static inline struct file *file_clone_open(struct file *file)
|
|
|
+{
|
|
|
+ return dentry_open(&file->f_path, file->f_flags, file->f_cred);
|
|
|
+}
|
|
|
extern int filp_close(struct file *, fl_owner_t id);
|
|
|
|
|
|
extern struct filename *getname_flags(const char __user *, int, int *);
|