Re: [RFC 02/15] PM / Hibernate: snapshot cleanup

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Rafael J. Wysocki
Date: Wednesday, March 24, 2010 - 3:35 pm

On Tuesday 23 March 2010, Jiri Slaby wrote:

Makes sense.

One coding style comment, though.

...  

The official kernel coding style is to put single instructions under if/else
like this in braces if the other branch of the if/else is multiline (and
therefore naturally in braces).   So please do:

+	if (!pg_offp) { /* on page boundary? */
+		res = snapshot_read_next(&data->handle);
+		if (res <= 0)
+			goto Unlock;
+	} else {
+		res = PAGE_SIZE - pg_offp;
+	}

and analogously wherever applicable.

Thanks,
Rafael
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC 02/15] PM / Hibernate: snapshot cleanup, Jiri Slaby, (Tue Mar 23, 9:17 am)
Re: [RFC 02/15] PM / Hibernate: snapshot cleanup, Pavel Machek, (Wed Mar 24, 1:29 pm)
Re: [RFC 02/15] PM / Hibernate: snapshot cleanup, Rafael J. Wysocki, (Wed Mar 24, 3:35 pm)
Re: [RFC 02/15] PM / Hibernate: snapshot cleanup, Pavel Machek, (Wed Mar 24, 10:29 pm)