Chris
-- ============================================================================= | Chris Lawrence | You have a computer. Do you have Linux? | | <quango@watervalley.net> | http://www.linux-m68k.org/index.html | | | | | Amiga A4000/060 with | Visit the Amiga Web Directory | | Linux/m68k 2.1.127 | http://www.cucug.org/amiga.html | =============================================================================--- linux-2.2.1/fs/buffer.c Fri Jan 22 22:32:04 1999 +++ linux/fs/buffer.c Tue Feb 16 00:16:32 1999 @@ -382,8 +382,11 @@ if (!file->f_op || !file->f_op->fsync) goto out_putf; + /* We need to protect against concurrent writers.. */ + down(&inode->i_sem); /* this needs further work, at the moment it is identical to fsync() */ err = file->f_op->fsync(file, dentry); + up(&inode->i_sem); out_putf: fput(file);
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/