summaryrefslogtreecommitdiffstats
path: root/block/bdev.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2022-05-25 03:30:27 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2022-05-25 03:30:27 +0200
commit850f6033cd2bf3b1fcbf9a20d078edab7e7c67b4 (patch)
tree5e0883b0ae5725d0dbc09271847cfac546dd1b15 /block/bdev.c
parentMerge tag 'fs.idmapped.v5.19' of git://git.kernel.org/pub/scm/linux/kernel/gi... (diff)
parentexfat: check if cluster num is valid (diff)
downloadlinux-850f6033cd2bf3b1fcbf9a20d078edab7e7c67b4.tar.xz
linux-850f6033cd2bf3b1fcbf9a20d078edab7e7c67b4.zip
Merge tag 'exfat-for-5.19-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/linkinjeon/exfat
Pull exfat updates from Namjae Jeon: - fix referencing wrong parent directory information during rename - introduce a sys_tz mount option to use system timezone - improve performance while zeroing a cluster with dirsync mount option - fix slab-out-bounds in exat_clear_bitmap() reported from syzbot * tag 'exfat-for-5.19-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/linkinjeon/exfat: exfat: check if cluster num is valid exfat: reduce block requests when zeroing a cluster block: add sync_blockdev_range() exfat: introduce mount option 'sys_tz' exfat: fix referencing wrong parent directory information after renaming
Diffstat (limited to 'block/bdev.c')
-rw-r--r--block/bdev.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/block/bdev.c b/block/bdev.c
index 7bf88e591aaf..5fe06c1f2def 100644
--- a/block/bdev.c
+++ b/block/bdev.c
@@ -200,6 +200,13 @@ int sync_blockdev(struct block_device *bdev)
}
EXPORT_SYMBOL(sync_blockdev);
+int sync_blockdev_range(struct block_device *bdev, loff_t lstart, loff_t lend)
+{
+ return filemap_write_and_wait_range(bdev->bd_inode->i_mapping,
+ lstart, lend);
+}
+EXPORT_SYMBOL(sync_blockdev_range);
+
/*
* Write out and wait upon all dirty data associated with this
* device. Filesystem data as well as the underlying block