Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
block: Don't invalidate pagecache for invalid falloc modes
Only call truncate_bdev_range() if the fallocate mode is supported. This fixes a bug where data in the pagecache could be invalidated if the fallocate() was called on the block device with an invalid mode. Fixes: 25f4c41 ("block: implement (some of) fallocate for block devices") Signed-off-by: Sarthak Kukreti <sarthakkukreti@chromium.org>
- Loading branch information