patch-2.4.18 linux/fs/read_write.c
Next file: linux/fs/reiserfs/Makefile
Previous file: linux/fs/qnx4/inode.c
Back to the patch index
Back to the overall index
- Lines: 47
- Date:
Mon Feb 18 19:18:20 2002
- Orig file:
linux.orig/fs/read_write.c
- Orig date:
Sun Aug 5 20:12:41 2001
diff -Naur -X /home/marcelo/lib/dontdiff linux.orig/fs/read_write.c linux/fs/read_write.c
@@ -163,8 +163,7 @@
}
}
if (ret > 0)
- inode_dir_notify(file->f_dentry->d_parent->d_inode,
- DN_ACCESS);
+ dnotify_parent(file->f_dentry, DN_ACCESS);
fput(file);
}
return ret;
@@ -190,8 +189,7 @@
}
}
if (ret > 0)
- inode_dir_notify(file->f_dentry->d_parent->d_inode,
- DN_MODIFY);
+ dnotify_parent(file->f_dentry, DN_MODIFY);
fput(file);
}
return ret;
@@ -295,7 +293,7 @@
out_nofree:
/* VERIFY_WRITE actually means a read, as we write to user space */
if ((ret + (type == VERIFY_WRITE)) > 0)
- inode_dir_notify(file->f_dentry->d_parent->d_inode,
+ dnotify_parent(file->f_dentry,
(type == VERIFY_WRITE) ? DN_MODIFY : DN_ACCESS);
return ret;
}
@@ -368,7 +366,7 @@
goto out;
ret = read(file, buf, count, &pos);
if (ret > 0)
- inode_dir_notify(file->f_dentry->d_parent->d_inode, DN_ACCESS);
+ dnotify_parent(file->f_dentry, DN_ACCESS);
out:
fput(file);
bad_file:
@@ -400,7 +398,7 @@
ret = write(file, buf, count, &pos);
if (ret > 0)
- inode_dir_notify(file->f_dentry->d_parent->d_inode, DN_MODIFY);
+ dnotify_parent(file->f_dentry, DN_MODIFY);
out:
fput(file);
bad_file:
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)