diff options
Diffstat (limited to 'drivers/block')
-rw-r--r-- | drivers/block/rd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/block/rd.c b/drivers/block/rd.c index 1c54f46d3f70..940bfd7951e5 100644 --- a/drivers/block/rd.c +++ b/drivers/block/rd.c | |||
@@ -186,7 +186,8 @@ static int ramdisk_writepages(struct address_space *mapping, | |||
186 | */ | 186 | */ |
187 | static int ramdisk_set_page_dirty(struct page *page) | 187 | static int ramdisk_set_page_dirty(struct page *page) |
188 | { | 188 | { |
189 | SetPageDirty(page); | 189 | if (!TestSetPageDirty(page)) |
190 | return 1; | ||
190 | return 0; | 191 | return 0; |
191 | } | 192 | } |
192 | 193 | ||