Re: [RFC 11/15] PM / Hibernate: add chunk i/o support

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Rafael J. Wysocki
Date: Thursday, March 25, 2010 - 3:38 pm

On Tuesday 23 March 2010, Jiri Slaby wrote:

Please don't do that.  Fail the operation instead.  You can also use WARN_ON
or WARN if you _really_ want the user to notice the failure.

BUG_ON's like this are annoying like hell for testers who trigger them.


Why do we need that clear_page()?


Please move these two lines out of the if()/else.


I'd split the above into two functions, one for writing and the other for
reading.

Doing the same with sws_rw_buffer() (under a better name), for the sake of
clarity, also might make some sense, apparently.


--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC 11/15] PM / Hibernate: add chunk i/o support, Jiri Slaby, (Tue Mar 23, 9:17 am)
Re: [RFC 11/15] PM / Hibernate: add chunk i/o support, Rafael J. Wysocki, (Thu Mar 25, 3:38 pm)
Re: [RFC 11/15] PM / Hibernate: add chunk i/o support, Nigel Cunningham, (Fri Mar 26, 3:02 am)