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/cramfs | |
parent | a9d7bff9a84dba79609a0002e5321b74c4d64c64 (diff) |
Merge with 2.4.0-test11.
Diffstat (limited to 'fs/cramfs')
-rw-r--r-- | fs/cramfs/inode.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/fs/cramfs/inode.c b/fs/cramfs/inode.c index 4b34da094..51eff1caa 100644 --- a/fs/cramfs/inode.c +++ b/fs/cramfs/inode.c @@ -34,7 +34,7 @@ static struct address_space_operations cramfs_aops; static struct inode *get_cramfs_inode(struct super_block *sb, struct cramfs_inode * cramfs_inode) { - struct inode * inode = get_empty_inode(); + struct inode * inode = new_inode(sb); if (inode) { inode->i_mode = cramfs_inode->mode; @@ -42,14 +42,10 @@ static struct inode *get_cramfs_inode(struct super_block *sb, struct cramfs_inod inode->i_size = cramfs_inode->size; inode->i_gid = cramfs_inode->gid; inode->i_ino = CRAMINO(cramfs_inode); - inode->i_sb = sb; - inode->i_dev = sb->s_dev; - inode->i_nlink = 1; /* arguably wrong for directories, - but it's the best we can do - without reading the directory - contents. 1 yields the right - result in GNU find, even - without -noleaf option. */ + /* inode->i_nlink is left 1 - arguably wrong for directories, + but it's the best we can do without reading the directory + contents. 1 yields the right result in GNU find, even + without -noleaf option. */ insert_inode_hash(inode); if (S_ISREG(inode->i_mode)) { inode->i_fop = &generic_ro_fops; |