瀏覽代碼

xen/xenfs: set_page_dirty is supposed to return true if it dirties

I don't think it matters at all in this case (there's only one caller
which checks the return value), but may as well be strictly correct.

[ Impact: cleanup ]

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Jeremy Fitzhardinge 16 年之前
父節點
當前提交
35f8c1c343
共有 1 個文件被更改,包括 1 次插入3 次删除
  1. 1 3
      drivers/xen/xenfs/super.c

+ 1 - 3
drivers/xen/xenfs/super.c

@@ -26,9 +26,7 @@ MODULE_LICENSE("GPL");
 
 static int xenfs_set_page_dirty(struct page *page)
 {
-	if (!PageDirty(page))
-		SetPageDirty(page);
-	return 0;
+	return !TestSetPageDirty(page);
 }
 
 static const struct address_space_operations xenfs_aops = {