On Tue, Jan 22, 2019 at 02:58:21PM +0800, yangerkun wrote: > While do swap, we should make sure there has no new dirty page since we > should swap i_data between two inode: > 1.We should locki i_mmap_sem with write to avoid new pagecache from mmap > read/write; > 2.Change filemap_flush to filemap_write_and_wait and move them to the > space protected by inode lock to avoid new pagecache from buffer read/write. > > Signed-off-by: yangerkun <yangerkun@xxxxxxxxxx> Thanks, applied. - Ted