Re: [PATCH] Fix vmtruncate race and distributed filesystem race

From: Andrew Morton (
Date: Thu Jun 12 2003 - 18:07:40 EST

Dave McCracken <> wrote:
> I also think if we can solve both the vmtruncate and the distributed file
> system races without adding any vm_ops, we should.
> Here's a new patch. Does this look better?

grumble, mutter. It's certainly simple enough.

+ mapping = vma->vm_file->f_dentry->d_inode->i_mapping;

I'm not so sure about this one now. write() alters dentry->d_inode but
truncate alters dentry->d_inode->i_mapping->host. Unless truncate is
changed we have the wrong mapping here.

I'll put it back to the original while I try to work out why truncate isn't

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

This archive was generated by hypermail 2b29 : Sun Jun 15 2003 - 22:00:34 EST