mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
writeback: fix ntfs with sb_has_dirty_inodes()
NTFS's if-condition on dirty inodes is not complete. Fix it with sb_has_dirty_inodes(). Cc: Anton Altaparmakov <[email protected]> Cc: Ken Chen <[email protected]> Signed-off-by: Fengguang Wu <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
2c13657910
commit
08d8e9749e
3 changed files with 12 additions and 3 deletions
|
|
@ -2381,14 +2381,14 @@ static void ntfs_put_super(struct super_block *sb)
|
|||
*/
|
||||
ntfs_commit_inode(vol->mft_ino);
|
||||
write_inode_now(vol->mft_ino, 1);
|
||||
if (!list_empty(&sb->s_dirty)) {
|
||||
if (sb_has_dirty_inodes(sb)) {
|
||||
const char *s1, *s2;
|
||||
|
||||
mutex_lock(&vol->mft_ino->i_mutex);
|
||||
truncate_inode_pages(vol->mft_ino->i_mapping, 0);
|
||||
mutex_unlock(&vol->mft_ino->i_mutex);
|
||||
write_inode_now(vol->mft_ino, 1);
|
||||
if (!list_empty(&sb->s_dirty)) {
|
||||
if (sb_has_dirty_inodes(sb)) {
|
||||
static const char *_s1 = "inodes";
|
||||
static const char *_s2 = "";
|
||||
s1 = _s1;
|
||||
|
|
|
|||
Loading…
Reference in a new issue