On Fri, Aug 11, 2023 at 01:04:33PM +0200, Jan Kara wrote: > + blk_mode_t open_mode = ((struct bdev_handle *)file->private_data)->mode; Nit: but I find it much more readable to just have a local bdev_handle variable vs these deep references including casts. This also appears in a few others places.