namei.c (18bb1db3e7607e4a997d50991a6f9fa5b0f8722c) namei.c (4acdaf27ebe2034c342f3be57ef49aed1ad885ef)
1/*
2 * linux/fs/ext2/namei.c
3 *
4 * Rewrite to pagecache. Almost all code had been changed, so blame me
5 * if the things go wrong. Please, send bug reports to
6 * viro@parcelfarce.linux.theplanet.co.uk
7 *
8 * Stuff here is basically a glue between the VFS and generic UNIXish

--- 80 unchanged lines hidden (view full) ---

89/*
90 * By the time this is called, we already have created
91 * the directory cache entry for the new file, but it
92 * is so far negative - it has no inode.
93 *
94 * If the create succeeds, we fill in the inode information
95 * with d_instantiate().
96 */
1/*
2 * linux/fs/ext2/namei.c
3 *
4 * Rewrite to pagecache. Almost all code had been changed, so blame me
5 * if the things go wrong. Please, send bug reports to
6 * viro@parcelfarce.linux.theplanet.co.uk
7 *
8 * Stuff here is basically a glue between the VFS and generic UNIXish

--- 80 unchanged lines hidden (view full) ---

89/*
90 * By the time this is called, we already have created
91 * the directory cache entry for the new file, but it
92 * is so far negative - it has no inode.
93 *
94 * If the create succeeds, we fill in the inode information
95 * with d_instantiate().
96 */
97static int ext2_create (struct inode * dir, struct dentry * dentry, int mode, struct nameidata *nd)
97static int ext2_create (struct inode * dir, struct dentry * dentry, umode_t mode, struct nameidata *nd)
98{
99 struct inode *inode;
100
101 dquot_initialize(dir);
102
103 inode = ext2_new_inode(dir, mode, &dentry->d_name);
104 if (IS_ERR(inode))
105 return PTR_ERR(inode);

--- 318 unchanged lines hidden ---
98{
99 struct inode *inode;
100
101 dquot_initialize(dir);
102
103 inode = ext2_new_inode(dir, mode, &dentry->d_name);
104 if (IS_ERR(inode))
105 return PTR_ERR(inode);

--- 318 unchanged lines hidden ---