diff options
author | Christoph Hellwig <hch@lst.de> | 2021-01-26 15:52:35 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-01-27 17:51:48 +0100 |
commit | c6bf3f0e25f4c0f0ecce6cf8d1c589bd9d74d3cf (patch) | |
tree | 75b4523f9dc5725dcef0150a487d27303058b259 /fs/hfsplus/inode.c | |
parent | block: split bio_kmalloc from bio_alloc_bioset (diff) | |
download | linux-c6bf3f0e25f4c0f0ecce6cf8d1c589bd9d74d3cf.tar.xz linux-c6bf3f0e25f4c0f0ecce6cf8d1c589bd9d74d3cf.zip |
block: use an on-stack bio in blkdev_issue_flush
There is no point in allocating memory for a synchronous flush.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Acked-by: Damien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/hfsplus/inode.c')
-rw-r--r-- | fs/hfsplus/inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/hfsplus/inode.c b/fs/hfsplus/inode.c index e3da9e96b835..ca464328b79c 100644 --- a/fs/hfsplus/inode.c +++ b/fs/hfsplus/inode.c @@ -340,7 +340,7 @@ int hfsplus_file_fsync(struct file *file, loff_t start, loff_t end, } if (!test_bit(HFSPLUS_SB_NOBARRIER, &sbi->flags)) - blkdev_issue_flush(inode->i_sb->s_bdev, GFP_KERNEL); + blkdev_issue_flush(inode->i_sb->s_bdev); inode_unlock(inode); |