inode.c (18bb1db3e7607e4a997d50991a6f9fa5b0f8722c) | inode.c (4acdaf27ebe2034c342f3be57ef49aed1ad885ef) |
---|---|
1/* 2 * Resizable simple ram filesystem for Linux. 3 * 4 * Copyright (C) 2000 Linus Torvalds. 5 * 2000 Transmeta Corp. 6 * 7 * Usage limits added by David Gibson, Linuxcare Australia. 8 * This file is released under the GPL. --- 100 unchanged lines hidden (view full) --- 109static int ramfs_mkdir(struct inode * dir, struct dentry * dentry, umode_t mode) 110{ 111 int retval = ramfs_mknod(dir, dentry, mode | S_IFDIR, 0); 112 if (!retval) 113 inc_nlink(dir); 114 return retval; 115} 116 | 1/* 2 * Resizable simple ram filesystem for Linux. 3 * 4 * Copyright (C) 2000 Linus Torvalds. 5 * 2000 Transmeta Corp. 6 * 7 * Usage limits added by David Gibson, Linuxcare Australia. 8 * This file is released under the GPL. --- 100 unchanged lines hidden (view full) --- 109static int ramfs_mkdir(struct inode * dir, struct dentry * dentry, umode_t mode) 110{ 111 int retval = ramfs_mknod(dir, dentry, mode | S_IFDIR, 0); 112 if (!retval) 113 inc_nlink(dir); 114 return retval; 115} 116 |
117static int ramfs_create(struct inode *dir, struct dentry *dentry, int mode, struct nameidata *nd) | 117static int ramfs_create(struct inode *dir, struct dentry *dentry, umode_t mode, struct nameidata *nd) |
118{ 119 return ramfs_mknod(dir, dentry, mode | S_IFREG, 0); 120} 121 122static int ramfs_symlink(struct inode * dir, struct dentry *dentry, const char * symname) 123{ 124 struct inode *inode; 125 int error = -ENOSPC; --- 180 unchanged lines hidden --- | 118{ 119 return ramfs_mknod(dir, dentry, mode | S_IFREG, 0); 120} 121 122static int ramfs_symlink(struct inode * dir, struct dentry *dentry, const char * symname) 123{ 124 struct inode *inode; 125 int error = -ENOSPC; --- 180 unchanged lines hidden --- |