patch-2.3.7 linux/fs/read_write.c
Next file: linux/fs/smbfs/dir.c
Previous file: linux/fs/proc/sysvipc.c
Back to the patch index
Back to the overall index
- Lines: 31
- Date:
Wed Jun 16 19:26:27 1999
- Orig file:
v2.3.6/linux/fs/read_write.c
- Orig date:
Sun Dec 27 10:52:09 1998
diff -u --recursive --new-file v2.3.6/linux/fs/read_write.c linux/fs/read_write.c
@@ -166,9 +166,7 @@
if (!file->f_op || !(write = file->f_op->write))
goto out;
- down(&inode->i_sem);
ret = write(file, buf, count, &file->f_pos);
- up(&inode->i_sem);
out:
fput(file);
bad_file:
@@ -304,9 +302,7 @@
if (!file)
goto bad_file;
if (file->f_op && file->f_op->write && (file->f_mode & FMODE_WRITE)) {
- down(&file->f_dentry->d_inode->i_sem);
ret = do_readv_writev(VERIFY_READ, file, vector, count);
- up(&file->f_dentry->d_inode->i_sem);
}
fput(file);
@@ -376,10 +372,7 @@
if (pos < 0)
goto out;
- down(&file->f_dentry->d_inode->i_sem);
ret = write(file, buf, count, &pos);
- up(&file->f_dentry->d_inode->i_sem);
-
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)