Skip to content

Commit 543563e

Browse files
committed
Merge: exfat: sync to newer upstream version for RHEL9.4
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-9/-/merge_requests/3392 JIRA: https://issues.redhat.com/browse/RHEL-9653 Signed-off-by: Pavel Reichl <preichl@redhat.com> Backport relevant exfat patches up to v6.3, ff84772 exfat: release s_lock before calling dir_emit() from v6.5, which fixes ca06197 (which is already in c9s), 96b7058 block: add sync_blockdev_range(), because backported patches depend on it Approved-by: Carlos Maiolino <cmaiolino@redhat.com> Approved-by: Andrey Albershteyn <aalbersh@redhat.com> Approved-by: Bill O'Donnell <bodonnel@redhat.com> Signed-off-by: Scott Weaver <scweaver@redhat.com>
2 parents b838b2a + 04108a7 commit 543563e

File tree

14 files changed

+499
-493
lines changed

14 files changed

+499
-493
lines changed

block/bdev.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,13 @@ int sync_blockdev(struct block_device *bdev)
199199
}
200200
EXPORT_SYMBOL(sync_blockdev);
201201

202+
int sync_blockdev_range(struct block_device *bdev, loff_t lstart, loff_t lend)
203+
{
204+
return filemap_write_and_wait_range(bdev->bd_inode->i_mapping,
205+
lstart, lend);
206+
}
207+
EXPORT_SYMBOL(sync_blockdev_range);
208+
202209
/*
203210
* Write out and wait upon all dirty data associated with this
204211
* device. Filesystem data as well as the underlying block

fs/exfat/balloc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ int exfat_load_bitmap(struct super_block *sb)
105105
struct exfat_dentry *ep;
106106
struct buffer_head *bh;
107107

108-
ep = exfat_get_dentry(sb, &clu, i, &bh, NULL);
108+
ep = exfat_get_dentry(sb, &clu, i, &bh);
109109
if (!ep)
110110
return -EIO;
111111

0 commit comments

Comments
 (0)