Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 594994aa authored by Miguel's avatar Miguel Committed by Chris Mason
Browse files

Btrfs: define write_cache_pages for linux kernel <= 2.6.20 instead



write_cache_pages doesn't exist in linux 2.6.20,  change the #if
condition to match that.

Signed-off-by: default avatarChris Mason <chris.mason@oracle.com>
parent a5eb62e3
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -2109,8 +2109,7 @@ done:
	return 0;
}

#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,18)

#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,20)
/* Taken directly from 2.6.23 for 2.6.18 back port */
typedef int (*writepage_t)(struct page *page, struct writeback_control *wbc,
                                void *data);