X-Git-Url: http://git.cascardo.eti.br/?a=blobdiff_plain;f=fs%2Ffile_table.c;h=3f85411b03ce6aac983caa0e0283e8da8848225d;hb=b0afd8e5db7b11aa9078e82e7f9abc30dc35a3c1;hp=0bab12b2046009e0dd53fcc1a834c0a153b1f7cd;hpb=90d0c376f5ee1927327b267faf15bf970476f09e;p=cascardo%2Flinux.git diff --git a/fs/file_table.c b/fs/file_table.c index 0bab12b20460..3f85411b03ce 100644 --- a/fs/file_table.c +++ b/fs/file_table.c @@ -150,18 +150,10 @@ over: /** * alloc_file - allocate and initialize a 'struct file' - * @mnt: the vfsmount on which the file will reside - * @dentry: the dentry representing the new file + * + * @path: the (dentry, vfsmount) pair for the new file * @mode: the mode with which the new file will be opened * @fop: the 'struct file_operations' for the new file - * - * Use this instead of get_empty_filp() to get a new - * 'struct file'. Do so because of the same initialization - * pitfalls reasons listed for init_file(). This is a - * preferred interface to using init_file(). - * - * If all the callers of init_file() are eliminated, its - * code should be moved into this function. */ struct file *alloc_file(struct path *path, fmode_t mode, const struct file_operations *fop)