Displaying 2 results from an estimated 2 matches for "folio_pos".
Did you mean:
folio_ops
2023 Jul 03
0
+ fs-buffer-clean-up-block_commit_write-fix.patch added to mm-unstable branch
...eletion(-)
--- a/fs/buffer.c~fs-buffer-clean-up-block_commit_write-fix
+++ a/fs/buffer.c
@@ -2252,7 +2252,6 @@ int block_write_end(struct file *file, s
struct page *page, void *fsdata)
{
struct folio *folio = page_folio(page);
- struct inode *inode = mapping->host;
size_t start = pos - folio_pos(folio);
if (unlikely(copied < len)) {
_
Patches currently in -mm which might be from akpm at linux-foundation.org are
mm-shmem-fix-race-in-shmem_undo_range-w-thp-fix.patch
swap-stop-add-to-avail-list-is-swap-is-full-checkpatch-fixes.patch
fs-buffer-clean-up-block_commit_write-fix.patch
2023 Jul 02
0
+ fs-convert-block_commit_write-to-return-void.patch added to mm-unstable branch
...ned to)
+void block_commit_write(struct page *page, unsigned from, unsigned to)
{
struct folio *folio = page_folio(page);
__block_commit_write(folio, from, to);
- return 0;
}
EXPORT_SYMBOL(block_commit_write);
@@ -2647,11 +2645,11 @@ int block_page_mkwrite(struct vm_area_st
end = size - folio_pos(folio);
ret = __block_write_begin_int(folio, 0, end, get_block, NULL);
- if (!ret)
- ret = __block_commit_write(folio, 0, end);
+ if (unlikely(ret))
+ goto out_unlock;
+
+ __block_commit_write(folio, 0, end);
- if (unlikely(ret < 0))
- goto out_unlock;
folio_mark_dirty(folio);
foli...