patch-2.3.13 linux/fs/umsdos/inode.c

Next file: linux/fs/umsdos/symlink.c
Previous file: linux/fs/umsdos/file.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.12/linux/fs/umsdos/inode.c linux/fs/umsdos/inode.c
@@ -42,7 +42,7 @@
 	filp->f_reada = 1;
 	filp->f_flags = O_RDWR;
 	filp->f_dentry = dentry;
-	filp->f_op = &umsdos_file_operations;
+	filp->f_op = dentry->d_inode->i_op->default_file_ops;
 }
 
 
@@ -146,19 +146,7 @@
 	umsdos_set_dirinfo_new(dentry, f_pos);
 
 	if (S_ISREG (inode->i_mode)) {
-		if (MSDOS_SB (inode->i_sb)->cvf_format) {
-			if (MSDOS_SB (inode->i_sb)->cvf_format->flags & CVF_USE_READPAGE) {
-				inode->i_op = &umsdos_file_inode_operations_readpage;
-			} else {
-				inode->i_op = &umsdos_file_inode_operations_no_bmap;
-			}
-		} else {
-			if (inode->i_op->bmap != NULL) {
-				inode->i_op = &umsdos_file_inode_operations;
-			} else {
-				inode->i_op = &umsdos_file_inode_operations_no_bmap;
-			}
-		}
+		/* All set */
 	} else if (S_ISDIR (inode->i_mode)) {
 		umsdos_setup_dir(dentry);
 	} else if (S_ISLNK (inode->i_mode)) {

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)