[PATCH] Fix offset/size setting problem

Add ->real_file_size, as ->file_size is the io size. Otherwise we don't
know if an offset + size is valid. This fixes the bug of offset >= size,
if size is set smaller than the device/file size.
2 files changed