diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/drbd_limits.h | 4 | ||||
| -rw-r--r-- | include/linux/fscache.h | 21 | ||||
| -rw-r--r-- | include/linux/mfd/ds1wm.h | 7 | ||||
| -rw-r--r-- | include/linux/sched.h | 2 |
4 files changed, 31 insertions, 3 deletions
diff --git a/include/linux/drbd_limits.h b/include/linux/drbd_limits.h index 246f576c981d..447c36752385 100644 --- a/include/linux/drbd_limits.h +++ b/include/linux/drbd_limits.h | |||
| @@ -117,10 +117,10 @@ | |||
| 117 | /* drbdsetup XY resize -d Z | 117 | /* drbdsetup XY resize -d Z |
| 118 | * you are free to reduce the device size to nothing, if you want to. | 118 | * you are free to reduce the device size to nothing, if you want to. |
| 119 | * the upper limit with 64bit kernel, enough ram and flexible meta data | 119 | * the upper limit with 64bit kernel, enough ram and flexible meta data |
| 120 | * is 16 TB, currently. */ | 120 | * is 1 PiB, currently. */ |
| 121 | /* DRBD_MAX_SECTORS */ | 121 | /* DRBD_MAX_SECTORS */ |
| 122 | #define DRBD_DISK_SIZE_SECT_MIN 0 | 122 | #define DRBD_DISK_SIZE_SECT_MIN 0 |
| 123 | #define DRBD_DISK_SIZE_SECT_MAX (16 * (2LLU << 30)) | 123 | #define DRBD_DISK_SIZE_SECT_MAX (1 * (2LLU << 40)) |
| 124 | #define DRBD_DISK_SIZE_SECT_DEF 0 /* = disabled = no user size... */ | 124 | #define DRBD_DISK_SIZE_SECT_DEF 0 /* = disabled = no user size... */ |
| 125 | 125 | ||
| 126 | #define DRBD_ON_IO_ERROR_DEF EP_PASS_ON | 126 | #define DRBD_ON_IO_ERROR_DEF EP_PASS_ON |
diff --git a/include/linux/fscache.h b/include/linux/fscache.h index 7c4d72f5581f..9ec20dec3353 100644 --- a/include/linux/fscache.h +++ b/include/linux/fscache.h | |||
| @@ -204,6 +204,8 @@ extern bool __fscache_check_page_write(struct fscache_cookie *, struct page *); | |||
| 204 | extern void __fscache_wait_on_page_write(struct fscache_cookie *, struct page *); | 204 | extern void __fscache_wait_on_page_write(struct fscache_cookie *, struct page *); |
| 205 | extern bool __fscache_maybe_release_page(struct fscache_cookie *, struct page *, | 205 | extern bool __fscache_maybe_release_page(struct fscache_cookie *, struct page *, |
| 206 | gfp_t); | 206 | gfp_t); |
| 207 | extern void __fscache_uncache_all_inode_pages(struct fscache_cookie *, | ||
| 208 | struct inode *); | ||
| 207 | 209 | ||
| 208 | /** | 210 | /** |
| 209 | * fscache_register_netfs - Register a filesystem as desiring caching services | 211 | * fscache_register_netfs - Register a filesystem as desiring caching services |
| @@ -643,4 +645,23 @@ bool fscache_maybe_release_page(struct fscache_cookie *cookie, | |||
| 643 | return false; | 645 | return false; |
| 644 | } | 646 | } |
| 645 | 647 | ||
| 648 | /** | ||
| 649 | * fscache_uncache_all_inode_pages - Uncache all an inode's pages | ||
| 650 | * @cookie: The cookie representing the inode's cache object. | ||
| 651 | * @inode: The inode to uncache pages from. | ||
| 652 | * | ||
| 653 | * Uncache all the pages in an inode that are marked PG_fscache, assuming them | ||
| 654 | * to be associated with the given cookie. | ||
| 655 | * | ||
| 656 | * This function may sleep. It will wait for pages that are being written out | ||
| 657 | * and will wait whilst the PG_fscache mark is removed by the cache. | ||
| 658 | */ | ||
| 659 | static inline | ||
| 660 | void fscache_uncache_all_inode_pages(struct fscache_cookie *cookie, | ||
| 661 | struct inode *inode) | ||
| 662 | { | ||
| 663 | if (fscache_cookie_valid(cookie)) | ||
| 664 | __fscache_uncache_all_inode_pages(cookie, inode); | ||
| 665 | } | ||
| 666 | |||
| 646 | #endif /* _LINUX_FSCACHE_H */ | 667 | #endif /* _LINUX_FSCACHE_H */ |
diff --git a/include/linux/mfd/ds1wm.h b/include/linux/mfd/ds1wm.h index be469a357cbb..38a372a0e285 100644 --- a/include/linux/mfd/ds1wm.h +++ b/include/linux/mfd/ds1wm.h | |||
| @@ -3,4 +3,11 @@ | |||
| 3 | struct ds1wm_driver_data { | 3 | struct ds1wm_driver_data { |
| 4 | int active_high; | 4 | int active_high; |
| 5 | int clock_rate; | 5 | int clock_rate; |
| 6 | /* in milliseconds, the amount of time to */ | ||
| 7 | /* sleep following a reset pulse. Zero */ | ||
| 8 | /* should work if your bus devices recover*/ | ||
| 9 | /* time respects the 1-wire spec since the*/ | ||
| 10 | /* ds1wm implements the precise timings of*/ | ||
| 11 | /* a reset pulse/presence detect sequence.*/ | ||
| 12 | unsigned int reset_recover_delay; | ||
| 6 | }; | 13 | }; |
diff --git a/include/linux/sched.h b/include/linux/sched.h index a837b20ba190..496770a96487 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
| @@ -808,7 +808,7 @@ enum cpu_idle_type { | |||
| 808 | * when BITS_PER_LONG <= 32 are pretty high and the returns do not justify the | 808 | * when BITS_PER_LONG <= 32 are pretty high and the returns do not justify the |
| 809 | * increased costs. | 809 | * increased costs. |
| 810 | */ | 810 | */ |
| 811 | #if BITS_PER_LONG > 32 | 811 | #if 0 /* BITS_PER_LONG > 32 -- currently broken: it increases power usage under light load */ |
| 812 | # define SCHED_LOAD_RESOLUTION 10 | 812 | # define SCHED_LOAD_RESOLUTION 10 |
| 813 | # define scale_load(w) ((w) << SCHED_LOAD_RESOLUTION) | 813 | # define scale_load(w) ((w) << SCHED_LOAD_RESOLUTION) |
| 814 | # define scale_load_down(w) ((w) >> SCHED_LOAD_RESOLUTION) | 814 | # define scale_load_down(w) ((w) >> SCHED_LOAD_RESOLUTION) |
