patch-2.3.43 linux/fs/ext2/namei.c
Next file: linux/fs/ext2/symlink.c
Previous file: linux/fs/ext2/inode.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Thu Feb 10 12:16:58 2000
- Orig file:
v2.3.42/linux/fs/ext2/namei.c
- Orig date:
Fri Jan 28 15:09:08 2000
diff -u --recursive --new-file v2.3.42/linux/fs/ext2/namei.c linux/fs/ext2/namei.c
@@ -384,6 +384,7 @@
return err;
inode->i_op = &ext2_file_inode_operations;
+ inode->i_mapping->a_ops = &ext2_aops;
inode->i_mode = mode;
mark_inode_dirty(inode);
bh = ext2_add_entry (dir, dentry->d_name.name, dentry->d_name.len, &de, &err);
@@ -696,7 +697,8 @@
inode->i_mode = S_IFLNK | S_IRWXUGO;
if (l > sizeof (inode->u.ext2_i.i_data)) {
- inode->i_op = &ext2_symlink_inode_operations;
+ inode->i_op = &page_symlink_inode_operations;
+ inode->i_mapping->a_ops = &ext2_aops;
err = block_symlink(inode, symname, l);
if (err)
goto out_no_entry;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)