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

Andrew Morton (akpm@digeo.com)
Thu, 12 Jun 2003 16:07:40 -0700


Dave McCracken <dmccr@us.ibm.com> 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
wrong...

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/