diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2016-03-18 22:26:54 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-03-18 22:26:54 -0400 |
| commit | 814a2bf957739f367cbebfa1b60237387b72d0ee (patch) | |
| tree | 8d65c38d14beb8d6d2dc5b9d7f8dbe63c7cad31a /include/linux/buffer_head.h | |
| parent | 237045fc3c67d44088f767dca5a9fa30815eba62 (diff) | |
| parent | f9310b2f9a19b7f16c7b1c1558f8b649b9b933c1 (diff) | |
Merge branch 'akpm' (patches from Andrew)
Merge second patch-bomb from Andrew Morton:
- a couple of hotfixes
- the rest of MM
- a new timer slack control in procfs
- a couple of procfs fixes
- a few misc things
- some printk tweaks
- lib/ updates, notably to radix-tree.
- add my and Nick Piggin's old userspace radix-tree test harness to
tools/testing/radix-tree/. Matthew said it was a godsend during the
radix-tree work he did.
- a few code-size improvements, switching to __always_inline where gcc
screwed up.
- partially implement character sets in sscanf
* emailed patches from Andrew Morton <akpm@linux-foundation.org>: (118 commits)
sscanf: implement basic character sets
lib/bug.c: use common WARN helper
param: convert some "on"/"off" users to strtobool
lib: add "on"/"off" support to kstrtobool
lib: update single-char callers of strtobool()
lib: move strtobool() to kstrtobool()
include/linux/unaligned: force inlining of byteswap operations
include/uapi/linux/byteorder, swab: force inlining of some byteswap operations
include/asm-generic/atomic-long.h: force inlining of some atomic_long operations
usb: common: convert to use match_string() helper
ide: hpt366: convert to use match_string() helper
ata: hpt366: convert to use match_string() helper
power: ab8500: convert to use match_string() helper
power: charger_manager: convert to use match_string() helper
drm/edid: convert to use match_string() helper
pinctrl: convert to use match_string() helper
device property: convert to use match_string() helper
lib/string: introduce match_string() helper
radix-tree tests: add test for radix_tree_iter_next
radix-tree tests: add regression3 test
...
Diffstat (limited to 'include/linux/buffer_head.h')
| -rw-r--r-- | include/linux/buffer_head.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/linux/buffer_head.h b/include/linux/buffer_head.h index 89d9aa9e79bf..c67f052cc5e5 100644 --- a/include/linux/buffer_head.h +++ b/include/linux/buffer_head.h | |||
| @@ -82,15 +82,15 @@ struct buffer_head { | |||
| 82 | * and buffer_foo() functions. | 82 | * and buffer_foo() functions. |
| 83 | */ | 83 | */ |
| 84 | #define BUFFER_FNS(bit, name) \ | 84 | #define BUFFER_FNS(bit, name) \ |
| 85 | static inline void set_buffer_##name(struct buffer_head *bh) \ | 85 | static __always_inline void set_buffer_##name(struct buffer_head *bh) \ |
| 86 | { \ | 86 | { \ |
| 87 | set_bit(BH_##bit, &(bh)->b_state); \ | 87 | set_bit(BH_##bit, &(bh)->b_state); \ |
| 88 | } \ | 88 | } \ |
| 89 | static inline void clear_buffer_##name(struct buffer_head *bh) \ | 89 | static __always_inline void clear_buffer_##name(struct buffer_head *bh) \ |
| 90 | { \ | 90 | { \ |
| 91 | clear_bit(BH_##bit, &(bh)->b_state); \ | 91 | clear_bit(BH_##bit, &(bh)->b_state); \ |
| 92 | } \ | 92 | } \ |
| 93 | static inline int buffer_##name(const struct buffer_head *bh) \ | 93 | static __always_inline int buffer_##name(const struct buffer_head *bh) \ |
| 94 | { \ | 94 | { \ |
| 95 | return test_bit(BH_##bit, &(bh)->b_state); \ | 95 | return test_bit(BH_##bit, &(bh)->b_state); \ |
| 96 | } | 96 | } |
| @@ -99,11 +99,11 @@ static inline int buffer_##name(const struct buffer_head *bh) \ | |||
| 99 | * test_set_buffer_foo() and test_clear_buffer_foo() | 99 | * test_set_buffer_foo() and test_clear_buffer_foo() |
| 100 | */ | 100 | */ |
| 101 | #define TAS_BUFFER_FNS(bit, name) \ | 101 | #define TAS_BUFFER_FNS(bit, name) \ |
| 102 | static inline int test_set_buffer_##name(struct buffer_head *bh) \ | 102 | static __always_inline int test_set_buffer_##name(struct buffer_head *bh) \ |
| 103 | { \ | 103 | { \ |
| 104 | return test_and_set_bit(BH_##bit, &(bh)->b_state); \ | 104 | return test_and_set_bit(BH_##bit, &(bh)->b_state); \ |
| 105 | } \ | 105 | } \ |
| 106 | static inline int test_clear_buffer_##name(struct buffer_head *bh) \ | 106 | static __always_inline int test_clear_buffer_##name(struct buffer_head *bh) \ |
| 107 | { \ | 107 | { \ |
| 108 | return test_and_clear_bit(BH_##bit, &(bh)->b_state); \ | 108 | return test_and_clear_bit(BH_##bit, &(bh)->b_state); \ |
| 109 | } \ | 109 | } \ |
