Blame SOURCES/0064-block-use-an-on-stack-bio-in-blkdev_issue_flush.patch
|
Kmods SIG |
9e3ffb |
From c6bf3f0e25f4c0f0ecce6cf8d1c589bd9d74d3cf Mon Sep 17 00:00:00 2001
|
|
Kmods SIG |
9e3ffb |
From: Christoph Hellwig <hch@lst.de>
|
|
Kmods SIG |
9e3ffb |
Date: Tue, 26 Jan 2021 15:52:35 +0100
|
|
Kmods SIG |
9e3ffb |
Subject: [Backport c6bf3f0e25f4] block: use an on-stack bio in
|
|
Kmods SIG |
9e3ffb |
blkdev_issue_flush
|
|
Kmods SIG |
9e3ffb |
|
|
Kmods SIG |
9e3ffb |
There is no point in allocating memory for a synchronous flush.
|
|
Kmods SIG |
9e3ffb |
|
|
Kmods SIG |
9e3ffb |
Signed-off-by: Christoph Hellwig <hch@lst.de>
|
|
Kmods SIG |
9e3ffb |
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
|
|
Kmods SIG |
9e3ffb |
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
|
|
Kmods SIG |
9e3ffb |
Acked-by: Damien Le Moal <damien.lemoal@wdc.com>
|
|
Kmods SIG |
9e3ffb |
Signed-off-by: Jens Axboe <axboe@kernel.dk>
|
|
Kmods SIG |
9e3ffb |
---
|
|
Kmods SIG |
9e3ffb |
src/file.c | 2 +-
|
|
Kmods SIG |
9e3ffb |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
Kmods SIG |
9e3ffb |
|
|
Kmods SIG |
9e3ffb |
diff --git a/src/file.c b/src/file.c
|
|
Kmods SIG |
9e3ffb |
index a92478eabfa4e43f2198ccf9b62b8632b697c8dc..183ffdf4d43c5fa781c8b7ddcde8dda4cdce2ac4 100644
|
|
Kmods SIG |
9e3ffb |
--- a/src/file.c
|
|
Kmods SIG |
9e3ffb |
+++ b/src/file.c
|
|
Kmods SIG |
9e3ffb |
@@ -361,7 +361,7 @@ int exfat_file_fsync(struct file *filp, loff_t start, loff_t end, int datasync)
|
|
Kmods SIG |
9e3ffb |
if (err)
|
|
Kmods SIG |
9e3ffb |
return err;
|
|
Kmods SIG |
9e3ffb |
|
|
Kmods SIG |
9e3ffb |
- return blkdev_issue_flush(inode->i_sb->s_bdev, GFP_KERNEL);
|
|
Kmods SIG |
9e3ffb |
+ return blkdev_issue_flush(inode->i_sb->s_bdev);
|
|
Kmods SIG |
9e3ffb |
}
|
|
Kmods SIG |
9e3ffb |
|
|
Kmods SIG |
9e3ffb |
const struct file_operations exfat_file_operations = {
|
|
Kmods SIG |
9e3ffb |
--
|
|
Kmods SIG |
9e3ffb |
2.31.1
|
|
Kmods SIG |
9e3ffb |
|