Re: PATCH: rewrite of invalidate_inode_pages

From: Trond Myklebust (trond.myklebust@fys.uio.no)
Date: Thu May 11 2000 - 17:34:41 EST


>>>>> " " == Juan J Quintela <quintela@fi.udc.es> writes:

> Linus, I agree with you here, but we do a get_page 5 lines
> before, I think that if I do a get_page I should do a put_page
> to liberate it. But I can be wrong, and then I would like to
> know if in the future, it could be posible to do a get_page and
> liberate it with a page_cache_release? That was my point.
> Sorry for the bad wording.

That part of the code is broken. We do not want to wait on locked
pages in invalidate_inode_pages(): that's the whole reason for its
existence. truncate_inode_pages() is the waiting version.

Cheers,
  Trond

-
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/



This archive was generated by hypermail 2b29 : Mon May 15 2000 - 21:00:19 EST