[PATCH] fix the raw driver
Fix the raw driver by tricking it into performing O_DIRECT IO against the bound blockdev. - rewrite the i_mapping for /dev/raw/raw0 to point at the same thing as bdev->bd_inode->i_mapping. We've performed a bdget() against the blockdev, which should pin it for the correct lifetime. - set the O_DIRECT bit on the caller's file->flags.
Showing
Please register or sign in to comment