dir.c (18bb1db3e7607e4a997d50991a6f9fa5b0f8722c) | dir.c (4acdaf27ebe2034c342f3be57ef49aed1ad885ef) |
---|---|
1/* 2 * linux/fs/hfs/dir.c 3 * 4 * Copyright (C) 1995-1997 Paul H. Hargrove 5 * (C) 2003 Ardis Technologies <roman@ardistech.com> 6 * This file may be distributed under the terms of the GNU General Public License. 7 * 8 * This file contains directory-related functions independent of which --- 172 unchanged lines hidden (view full) --- 181/* 182 * hfs_create() 183 * 184 * This is the create() entry in the inode_operations structure for 185 * regular HFS directories. The purpose is to create a new file in 186 * a directory and return a corresponding inode, given the inode for 187 * the directory and the name (and its length) of the new file. 188 */ | 1/* 2 * linux/fs/hfs/dir.c 3 * 4 * Copyright (C) 1995-1997 Paul H. Hargrove 5 * (C) 2003 Ardis Technologies <roman@ardistech.com> 6 * This file may be distributed under the terms of the GNU General Public License. 7 * 8 * This file contains directory-related functions independent of which --- 172 unchanged lines hidden (view full) --- 181/* 182 * hfs_create() 183 * 184 * This is the create() entry in the inode_operations structure for 185 * regular HFS directories. The purpose is to create a new file in 186 * a directory and return a corresponding inode, given the inode for 187 * the directory and the name (and its length) of the new file. 188 */ |
189static int hfs_create(struct inode *dir, struct dentry *dentry, int mode, | 189static int hfs_create(struct inode *dir, struct dentry *dentry, umode_t mode, |
190 struct nameidata *nd) 191{ 192 struct inode *inode; 193 int res; 194 195 inode = hfs_new_inode(dir, &dentry->d_name, mode); 196 if (!inode) 197 return -ENOSPC; --- 119 unchanged lines hidden --- | 190 struct nameidata *nd) 191{ 192 struct inode *inode; 193 int res; 194 195 inode = hfs_new_inode(dir, &dentry->d_name, mode); 196 if (!inode) 197 return -ENOSPC; --- 119 unchanged lines hidden --- |