• J
    random: convert to using fops->write_iter() · 22b0a222
    Jens Axboe 提交于
    Now that the read side has been converted to fix a regression with
    splice, convert the write side as well to have some symmetry in the
    interface used (and help deprecate ->write()).
    Signed-off-by: NJens Axboe <axboe@kernel.dk>
    [Jason: cleaned up random_ioctl a bit, require full writes in
     RNDADDENTROPY since it's crediting entropy, simplify control flow of
     write_pool(), and incorporate suggestions from Al.]
    Cc: Al Viro <viro@zeniv.linux.org.uk>
    Signed-off-by: NJason A. Donenfeld <Jason@zx2c4.com>
    22b0a222
random.c 47.0 KB