diff options
| author | Andrew Morton <[email protected]> | 2023-12-20 22:47:18 +0000 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2023-12-20 22:47:18 +0000 |
| commit | a721aeac8bc2cade37e68ea195f28d2ed28c1130 (patch) | |
| tree | 34da931ad1d0d715c4fde89d19af67780e40a6aa /mm/filemap.c | |
| parent | maple_tree: change return type of mas_split_final_node as void. (diff) | |
| parent | mailmap: add an old address for Naoya Horiguchi (diff) | |
| download | kernel-a721aeac8bc2cade37e68ea195f28d2ed28c1130.tar.gz kernel-a721aeac8bc2cade37e68ea195f28d2ed28c1130.zip | |
sync mm-stable with mm-hotfixes-stable to pick up depended-upon changes
Diffstat (limited to 'mm/filemap.c')
| -rw-r--r-- | mm/filemap.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/mm/filemap.c b/mm/filemap.c index c0d7e1d7eea2..67ba56ecdd32 100644 --- a/mm/filemap.c +++ b/mm/filemap.c @@ -2608,6 +2608,15 @@ ssize_t filemap_read(struct kiocb *iocb, struct iov_iter *iter, end_offset = min_t(loff_t, isize, iocb->ki_pos + iter->count); /* + * Pairs with a barrier in + * block_write_end()->mark_buffer_dirty() or other page + * dirtying routines like iomap_write_end() to ensure + * changes to page contents are visible before we see + * increased inode size. + */ + smp_rmb(); + + /* * Once we start copying data, we don't want to be touching any * cachelines that might be contended: */ |
