aboutsummaryrefslogtreecommitdiff
path: root/drivers/xen/xenfs/super.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/xen/xenfs/super.c')
-rw-r--r--drivers/xen/xenfs/super.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/xen/xenfs/super.c b/drivers/xen/xenfs/super.c
index 23f1cca5a2e..afaa6ede016 100644
--- a/drivers/xen/xenfs/super.c
+++ b/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 = {