lkml.org 
[lkml]   [2022]   [Aug]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH 3/5] smb3: fix temporary data corruption in collapse range
Date
Matthew Wilcox <willy@infradead.org> wrote:

> > filemap_write_and_wait(inode->i_mapping);
> > + truncate_pagecache_range(inode, off, old_eof);
>
> It's a bit odd to writeback the entire file but then truncate only part
> of it. XFS does the same part:

Actually, filemap_write_and_wait() should check for error, yes.

Is there something that combines these that we should use?
invalidate_inode_pages2_range() for example.

David

\
 
 \ /
  Last update: 2022-08-23 19:00    [W:0.068 / U:0.264 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site