projects
/
powerpc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[XFS] Revert recent quota Makefile change, not in a fit state for merging.
[powerpc.git]
/
fs
/
read_write.c
diff --git
a/fs/read_write.c
b/fs/read_write.c
index
9292f5f
..
b60324a
100644
(file)
--- a/
fs/read_write.c
+++ b/
fs/read_write.c
@@
-10,7
+10,7
@@
#include <linux/file.h>
#include <linux/uio.h>
#include <linux/smp_lock.h>
#include <linux/file.h>
#include <linux/uio.h>
#include <linux/smp_lock.h>
-#include <linux/
d
notify.h>
+#include <linux/
fs
notify.h>
#include <linux/security.h>
#include <linux/module.h>
#include <linux/syscalls.h>
#include <linux/security.h>
#include <linux/module.h>
#include <linux/syscalls.h>
@@
-188,7
+188,7
@@
int rw_verify_area(int read_write, struct file *file, loff_t *ppos, size_t count
struct inode *inode;
loff_t pos;
struct inode *inode;
loff_t pos;
- if (unlikely(count >
file->f_maxcount
))
+ if (unlikely(count >
INT_MAX
))
goto Einval;
pos = *ppos;
if (unlikely((pos < 0) || (loff_t) (pos + count) < 0))
goto Einval;
pos = *ppos;
if (unlikely((pos < 0) || (loff_t) (pos + count) < 0))
@@
-252,7
+252,7
@@
ssize_t vfs_read(struct file *file, char __user *buf, size_t count, loff_t *pos)
else
ret = do_sync_read(file, buf, count, pos);
if (ret > 0) {
else
ret = do_sync_read(file, buf, count, pos);
if (ret > 0) {
-
dnotify_parent(file->f_dentry, DN_ACCESS
);
+
fsnotify_access(file->f_dentry
);
current->rchar += ret;
}
current->syscr++;
current->rchar += ret;
}
current->syscr++;
@@
-303,7
+303,7
@@
ssize_t vfs_write(struct file *file, const char __user *buf, size_t count, loff_
else
ret = do_sync_write(file, buf, count, pos);
if (ret > 0) {
else
ret = do_sync_write(file, buf, count, pos);
if (ret > 0) {
-
dnotify_parent(file->f_dentry, DN_MODIFY
);
+
fsnotify_modify(file->f_dentry
);
current->wchar += ret;
}
current->syscw++;
current->wchar += ret;
}
current->syscw++;
@@
-539,9
+539,12
@@
static ssize_t do_readv_writev(int type, struct file *file,
out:
if (iov != iovstack)
kfree(iov);
out:
if (iov != iovstack)
kfree(iov);
- if ((ret + (type == READ)) > 0)
- dnotify_parent(file->f_dentry,
- (type == READ) ? DN_ACCESS : DN_MODIFY);
+ if ((ret + (type == READ)) > 0) {
+ if (type == READ)
+ fsnotify_access(file->f_dentry);
+ else
+ fsnotify_modify(file->f_dentry);
+ }
return ret;
Efault:
ret = -EFAULT;
return ret;
Efault:
ret = -EFAULT;