options: remove dependency of 'o' being first in 'td'
authorJens Axboe <axboe@fb.com>
Mon, 15 Aug 2016 15:31:25 +0000 (09:31 -0600)
committerJens Axboe <axboe@fb.com>
Mon, 15 Aug 2016 15:31:25 +0000 (09:31 -0600)
commita609f12a170143c799f4856747e28b41dbda8dc5
tree3ecde8ec1fc6ef07b7e328b2d92df26c48db030a
parent1651e4310feb3eab7c7c8cf0bd23d159cb410628
options: remove dependency of 'o' being first in 'td'

- We currently assume that &td->o == td, but it's unfortunate that we
  have to store 3-4K of option data in the first part of 'td'.

- Kill td_var_offset(), just use offsetof() instead.

Signed-off-by: Jens Axboe <axboe@fb.com>
options.c
options.h