patch-2.3.43 linux/fs/nfs/inode.c
Next file: linux/fs/nfs/write.c
Previous file: linux/fs/nfs/file.c
Back to the patch index
Back to the overall index
- Lines: 13
- Date:
Thu Feb 10 12:16:59 2000
- Orig file:
v2.3.42/linux/fs/nfs/inode.c
- Orig date:
Fri Jan 21 18:19:17 2000
diff -u --recursive --new-file v2.3.42/linux/fs/nfs/inode.c linux/fs/nfs/inode.c
@@ -473,9 +473,10 @@
NFS_FILEID(inode) = fattr->fileid;
NFS_FSID(inode) = fattr->fsid;
inode->i_mode = fattr->mode;
- if (S_ISREG(inode->i_mode))
+ if (S_ISREG(inode->i_mode)) {
inode->i_op = &nfs_file_inode_operations;
- else if (S_ISDIR(inode->i_mode))
+ inode->i_data.a_ops = &nfs_file_aops;
+ } else if (S_ISDIR(inode->i_mode))
inode->i_op = &nfs_dir_inode_operations;
else if (S_ISLNK(inode->i_mode))
inode->i_op = &nfs_symlink_inode_operations;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)