diff options
| author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-01-24 23:00:33 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-01-24 23:00:33 -0800 |
| commit | b0217ce88c39dcbbf7353b56bf2f8f93fa917ee9 (patch) | |
| tree | bf01ea068e3034b96c202be1efa4f2a552efcdd9 /arch/mips/kernel/linux32.c | |
| parent | 5781864c26406a8a336e2f888f7d6b5abaebcbd6 (diff) | |
Rename "locks_verify_area()" to "rw_verify_area()" and clean up the
arguments.
And make it non-inlined.
Diffstat (limited to 'arch/mips/kernel/linux32.c')
| -rw-r--r-- | arch/mips/kernel/linux32.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/mips/kernel/linux32.c b/arch/mips/kernel/linux32.c index afd36307070a..e773946f698f 100644 --- a/arch/mips/kernel/linux32.c +++ b/arch/mips/kernel/linux32.c @@ -468,8 +468,7 @@ asmlinkage ssize_t sys32_pread(unsigned int fd, char * buf, if (!(file->f_mode & FMODE_READ)) goto out; pos = merge_64(a4, a5); - ret = locks_verify_area(FLOCK_VERIFY_READ, file->f_dentry->d_inode, - file, pos, count); + ret = rw_verify_area(READ, file, &pos, count); if (ret) goto out; ret = -EINVAL; @@ -504,8 +503,7 @@ asmlinkage ssize_t sys32_pwrite(unsigned int fd, const char * buf, if (!(file->f_mode & FMODE_WRITE)) goto out; pos = merge_64(a4, a5); - ret = locks_verify_area(FLOCK_VERIFY_WRITE, file->f_dentry->d_inode, - file, pos, count); + ret = rw_verify_area(WRITE, file, &pos, count); if (ret) goto out; ret = -EINVAL; |
