Skip to content

Commit

Permalink
xen/xenfs: set_page_dirty is supposed to return true if it dirties
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jeremy Fitzhardinge committed Oct 20, 2010
1 parent 24a89b5 commit 35f8c1c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/xen/xenfs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 35f8c1c

Please sign in to comment.