diff options
author | Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com> | 2009-03-06 12:56:26 -0500 |
---|---|---|
committer | Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com> | 2010-10-20 19:22:30 -0400 |
commit | 35f8c1c343f2918ea24f05282d14e711887d8278 (patch) | |
tree | c6455171926898d3da6fa8715b25b0d44ff1ea01 /drivers/xen | |
parent | 24a89b5be4cf2b7f1b49b56b6cb4a7b71fccf241 (diff) |
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>
Diffstat (limited to 'drivers/xen')
-rw-r--r-- | drivers/xen/xenfs/super.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/xen/xenfs/super.c b/drivers/xen/xenfs/super.c index 23f1cca5a2e9..afaa6ede0168 100644 --- a/drivers/xen/xenfs/super.c +++ b/drivers/xen/xenfs/super.c | |||
@@ -26,9 +26,7 @@ MODULE_LICENSE("GPL"); | |||
26 | 26 | ||
27 | static int xenfs_set_page_dirty(struct page *page) | 27 | static int xenfs_set_page_dirty(struct page *page) |
28 | { | 28 | { |
29 | if (!PageDirty(page)) | 29 | return !TestSetPageDirty(page); |
30 | SetPageDirty(page); | ||
31 | return 0; | ||
32 | } | 30 | } |
33 | 31 | ||
34 | static const struct address_space_operations xenfs_aops = { | 32 | static const struct address_space_operations xenfs_aops = { |