]> xenbits.xensource.com Git - people/andrewcoop/mini-os.git/commit
use alloc_file_type() and get_file_from_fd() in blkfront
authorJuergen Gross <jgross@suse.com>
Sun, 16 Jan 2022 08:33:22 +0000 (09:33 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 18 Jan 2022 18:26:43 +0000 (18:26 +0000)
commit3b221172f1ee04327388c463e94be875cc1dfde2
treece7c3ad1527bb97a04047ce10f3d2f02a16b7539
parent446a03c3316b2c6eb98022901b88418236922ef2
use alloc_file_type() and get_file_from_fd() in blkfront

Allocate the file type dynamically via alloc_file_type().

Instead of directly accessing the files[] array use get_file_from_fd().

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
blkfront.c
include/blkfront.h
include/lib.h
lib/sys.c