diff options
author | Daniel Phillips <daniel@tux3.org> | 2014-02-19 03:51:53 +0900 |
---|---|---|
committer | Daniel Phillips <daniel@tux3.org> | 2014-02-19 03:51:53 +0900 |
commit | 5134038eeeb76f3bdc353c9e56424c103c76a03b (patch) | |
tree | 177683e1a9759cd9656e78793284e02b2896a49e | |
parent | 27cbf04af7deb83e32ec22d39a5e0a152d8b2143 (diff) | |
download | linux-tux3-5134038eeeb76f3bdc353c9e56424c103c76a03b.tar.gz |
tux3: Replace buffers_entry macro by an inline
As an inline we get more sensible error messages and more type safety.
We should fix more of these, but this one caused actual difficulty and
therefore got fixed first.
Signed-off-by: Daniel Phillips <d.phillips@partner.samsung.com>
Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
-rw-r--r-- | fs/tux3/buffer_writeback.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/fs/tux3/buffer_writeback.c b/fs/tux3/buffer_writeback.c index 5c936330c761aa..1baeb8ff9a3351 100644 --- a/fs/tux3/buffer_writeback.c +++ b/fs/tux3/buffer_writeback.c @@ -40,8 +40,11 @@ void tux3_iowait_wait(struct iowait *iowait) * Helper for buffer vector I/O. */ -#define buffers_entry(x) \ - list_entry(x, struct buffer_head, b_assoc_buffers) +static inline struct buffer_head *buffers_entry(struct list_head *x) +{ + return list_entry(x, struct buffer_head, b_assoc_buffers); +} + #define MAX_BUFVEC_COUNT UINT_MAX /* Initialize bufvec */ |