patch-2.3.48 linux/fs/exec.c

Next file: linux/fs/ext2/dir.c
Previous file: linux/fs/efs/super.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.47/linux/fs/exec.c linux/fs/exec.c
@@ -88,7 +88,7 @@
 		l = &inode->i_sb->s_files;
 
 	error = -EINVAL;
-	if (!inode->i_op || !inode->i_op->default_file_ops)
+	if (!inode->i_fop)
 		goto out;
 	fd = get_unused_fd();
 	if (fd >= 0) {
@@ -101,7 +101,7 @@
 		f->f_dentry = dentry;
 		f->f_pos = 0;
 		f->f_reada = 0;
-		f->f_op = inode->i_op->default_file_ops;
+		f->f_op = inode->i_fop;
 		if (f->f_op->open) {
 			error = f->f_op->open(inode,f);
 			if (error)
@@ -352,7 +352,7 @@
 	struct inode * inode = dentry->d_inode;
 	int result = -ENOEXEC;
 
-	if (!inode->i_op || !inode->i_op->default_file_ops)
+	if (!inode->i_fop)
 		goto end_readexec;
 	if (init_private_file(&file, dentry, 1))
 		goto end_readexec;
@@ -900,7 +900,7 @@
 
 	if (!S_ISREG(inode->i_mode))
 		goto close_fail;
-	if (!inode->i_op || !inode->i_op->default_file_ops)
+	if (!inode->i_fop)
 		goto close_fail;
 	if (!file->f_op->write)
 		goto close_fail;

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