Re: mapped pages being truncated [was Re: 2.6.5-rc2-aa5]

From: Andrea Arcangeli
Date: Tue Mar 30 2004 - 13:57:00 EST

On Tue, Mar 30, 2004 at 10:28:34AM -0800, Andrew Morton wrote:
> Andrea Arcangeli <andrea@xxxxxxx> wrote:
> >
> > here we go, my new debugging WARN_ON in in __remove_from_page_cache
> > triggered just before the other one in page_remove_rmap, as I expected
> > it was truncate removing pages from pagecache before all mappings were
> > dropped:
> XFS is doing peculiar things - xfs_setattr calls truncate_inode_pages()
> before running vmtruncate().
> xfs_setattr
> ->xfs_itruncate_start
> ->fs_tosspages
> ->truncate_inode_pages

Ok, so objrmap needs my WARN_ON changes to survive the above. I believe
I can close the bug as fixed now (however I will leave the WARN_ON in
the code).

Still xfs seems pretty broken doing the above.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at