···150150151151/**152152 * alloc_file - allocate and initialize a 'struct file'153153- * @mnt: the vfsmount on which the file will reside154154- * @dentry: the dentry representing the new file153153+ *154154+ * @path: the (dentry, vfsmount) pair for the new file155155 * @mode: the mode with which the new file will be opened156156 * @fop: the 'struct file_operations' for the new file157157- *158158- * Use this instead of get_empty_filp() to get a new159159- * 'struct file'. Do so because of the same initialization160160- * pitfalls reasons listed for init_file(). This is a161161- * preferred interface to using init_file().162162- *163163- * If all the callers of init_file() are eliminated, its164164- * code should be moved into this function.165157 */166158struct file *alloc_file(struct path *path, fmode_t mode,167159 const struct file_operations *fop)