mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-21 13:24:15 +08:00
ocfs2: Use filemap_write_and_wait() instead of write_inode_now()
Since ocfs2 has no ->write_inode method, there's no point in calling write_inode_now() from ocfs2_cleanup_delete_inode(). Use filemap_write_and_wait() instead. This helps us to cleanup inode writing interfaces... Signed-off-by: Jan Kara <jack@suse.cz> Signed-off-by: Joel Becker <jlbec@evilplan.org>
This commit is contained in:
parent
df295d4a4b
commit
249ec93c01
@ -951,7 +951,7 @@ static void ocfs2_cleanup_delete_inode(struct inode *inode,
|
||||
trace_ocfs2_cleanup_delete_inode(
|
||||
(unsigned long long)OCFS2_I(inode)->ip_blkno, sync_data);
|
||||
if (sync_data)
|
||||
write_inode_now(inode, 1);
|
||||
filemap_write_and_wait(inode->i_mapping);
|
||||
truncate_inode_pages(&inode->i_data, 0);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user