Well that's sort of the same level at which truncate takes it.
It's a pretty big lock.
> Interesting. So now I have a new question to resolve, which is
> why doing O_DIRECT and truncate together corrupted my disk when I tried
> it trying to break stuff
Interesting indeed. Possibly invalidate_inode_pages2() accidentally
left some dirty buffers detached from the mapping. Hard to see how
it could do that.
What kernel were you testing?
-
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/