Merge branch 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4
* 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4: ext4: Issue the discard operation *before* releasing the blocks to be reused ext4: Fix buffer head leaks after calls to ext4_get_inode_loc() ext4: Fix possible lost inode write in no journal mode
This commit is contained in:
@ -5375,7 +5375,7 @@ int ext4_write_inode(struct inode *inode, struct writeback_control *wbc)
|
||||
} else {
|
||||
struct ext4_iloc iloc;
|
||||
|
||||
err = ext4_get_inode_loc(inode, &iloc);
|
||||
err = __ext4_get_inode_loc(inode, &iloc, 0);
|
||||
if (err)
|
||||
return err;
|
||||
if (wbc->sync_mode == WB_SYNC_ALL)
|
||||
@ -5386,6 +5386,7 @@ int ext4_write_inode(struct inode *inode, struct writeback_control *wbc)
|
||||
(unsigned long long)iloc.bh->b_blocknr);
|
||||
err = -EIO;
|
||||
}
|
||||
brelse(iloc.bh);
|
||||
}
|
||||
return err;
|
||||
}
|
||||
|
Reference in New Issue
Block a user