diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2000-11-28 03:58:46 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2000-11-28 03:58:46 +0000 |
commit | b63ad0882a16a5d28003e57f2b0b81dee3fb322b (patch) | |
tree | 0a343ce219e2b8b38a5d702d66032c57b83d9720 /fs/bfs/dir.c | |
parent | a9d7bff9a84dba79609a0002e5321b74c4d64c64 (diff) |
Merge with 2.4.0-test11.
Diffstat (limited to 'fs/bfs/dir.c')
-rw-r--r-- | fs/bfs/dir.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/bfs/dir.c b/fs/bfs/dir.c index 1a0532420..5caf04a7b 100644 --- a/fs/bfs/dir.c +++ b/fs/bfs/dir.c @@ -80,10 +80,9 @@ static int bfs_create(struct inode * dir, struct dentry * dentry, int mode) struct super_block * s = dir->i_sb; unsigned long ino; - inode = get_empty_inode(); + inode = new_inode(s); if (!inode) return -ENOSPC; - inode->i_sb = s; ino = find_first_zero_bit(s->su_imap, s->su_lasti); if (ino > s->su_lasti) { iput(inode); @@ -91,7 +90,6 @@ static int bfs_create(struct inode * dir, struct dentry * dentry, int mode) } set_bit(ino, s->su_imap); s->su_freei--; - inode->i_dev = s->s_dev; inode->i_uid = current->fsuid; inode->i_gid = (dir->i_mode & S_ISGID) ? dir->i_gid : current->fsgid; inode->i_mtime = inode->i_atime = inode->i_ctime = CURRENT_TIME; |