[OpenAFS] openafs, swsusp2, pf_freeze and refrigerator
Jeffrey Hutzelman
jhutz@cmu.edu
Fri, 09 Sep 2005 16:30:10 -0400
On Friday, September 09, 2005 15:02:56 +0100 "Murray, WJ (Bill)"
<W.J.Murray@rl.ac.uk> wrote:
> Should this not be:
>
># ifdef AFS_LINUX26_ENV
># ifdef CONFIG_PM
># ifdef LINUX_REFRIGERATOR_TAKES_PF_FREEZE
> if (current->flags & PF_FREEZE)
> refrigerator(PF_FREEZE);
># else
> if (current->flags)
> refrigerator();
># endif
># endif
># endif
No, definitely not. The test is correct as written; your change would make
it do something else entirely.
-- Jeffrey T. Hutzelman (N3NHS) <jhutz+@cmu.edu>
Sr. Research Systems Programmer
School of Computer Science - Research Computing Facility
Carnegie Mellon University - Pittsburgh, PA