Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

Advertisement
[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Advertisement

Kernel v2.3.48 /fs/exec.c

Filename:/fs/exec.c
Lines Added:4
Lines Deleted:4
Also changed in: (Previous) 2.3.43  2.3.36  2.3.34  2.3.30  2.3.29  2.3.27 
(Following) 2.3.49  2.3.50  2.3.99-pre1  2.3.99-pre2  2.3.99-pre3  2.3.99-pre4 

Location
[  2.3.48
  [  fs
     o  exec.c

Patch

diff -u --recursive --new-file v2.3.47/linux/fs/exec.c linux/fs/exec.c
--- v2.3.47/linux/fs/exec.c   Thu Feb 10 17:11:16 2000
+++ linux/fs/exec.c   Sat Feb 26 20:33:05 2000
@@ -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;


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.