We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab38272 commit 5f7bbe7Copy full SHA for 5f7bbe7
fs/ext4/inline.c
@@ -2002,6 +2002,14 @@ int ext4_convert_inline_data(struct inode *inode)
2002
if (!ext4_has_inline_data(inode)) {
2003
ext4_clear_inode_state(inode, EXT4_STATE_MAY_INLINE_DATA);
2004
return 0;
2005
+ } else if (test_opt(inode->i_sb, DELALLOC) && !S_ISDIR(inode->i_mode)) {
2006
+ error = filemap_flush(inode->i_mapping);
2007
+ if (error)
2008
+ return error;
2009
+ if (!ext4_has_inline_data(inode)) {
2010
+ ext4_clear_inode_state(inode, EXT4_STATE_MAY_INLINE_DATA);
2011
+ return 0;
2012
+ }
2013
}
2014
2015
needed_blocks = ext4_writepage_trans_blocks(inode);
0 commit comments