aboutsummaryrefslogtreecommitdiff
path: root/fs/ubifs/commit.c
diff options
context:
space:
mode:
authorRafael J. Wysocki <rjw@sisk.pl>2008-11-08 13:53:33 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2008-11-13 09:56:04 -0800
commite5cac99d60ed711440aa10d134300d5180d0356f (patch)
tree1b9c198149320a344dbd067b10c9aef63188bd3b /fs/ubifs/commit.c
parente3145e60d787d3178cdd2576ad158d254bbaf8f1 (diff)
Fix __pfn_to_page(pfn) for CONFIG_DISCONTIGMEM=y
commit c5d712433ff57a66d8fb79a57a4fc7a7c3467b97 upstream Fix the __pfn_to_page(pfn) macro so that it doesn't evaluate its argument twice in the CONFIG_DISCONTIGMEM=y case, because 'pfn' may be a result of a funtion call having side effects. For example, the hibernation code applies pfn_to_page(pfn) to the result of a function returning the pfn corresponding to the next set bit in a bitmap and the current bit position is modified on each call. This leads to "interesting" failures for CONFIG_DISCONTIGMEM=y due to the current behavior of __pfn_to_page(pfn). Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl> Acked-by: Pavel Machek <pavel@suse.cz> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'fs/ubifs/commit.c')
0 files changed, 0 insertions, 0 deletions