Loading fs/ntfs3/fsntfs.c +7 −2 Original line number Original line Diff line number Diff line Loading @@ -925,6 +925,7 @@ int ntfs_set_state(struct ntfs_sb_info *sbi, enum NTFS_DIRTY_FLAGS dirty) struct VOLUME_INFO *info; struct VOLUME_INFO *info; struct mft_inode *mi; struct mft_inode *mi; struct ntfs_inode *ni; struct ntfs_inode *ni; __le16 info_flags; /* /* * Do not change state if fs was real_dirty. * Do not change state if fs was real_dirty. Loading Loading @@ -957,6 +958,8 @@ int ntfs_set_state(struct ntfs_sb_info *sbi, enum NTFS_DIRTY_FLAGS dirty) goto out; goto out; } } info_flags = info->flags; switch (dirty) { switch (dirty) { case NTFS_DIRTY_ERROR: case NTFS_DIRTY_ERROR: ntfs_notice(sbi->sb, "Mark volume as dirty due to NTFS errors"); ntfs_notice(sbi->sb, "Mark volume as dirty due to NTFS errors"); Loading @@ -970,8 +973,10 @@ int ntfs_set_state(struct ntfs_sb_info *sbi, enum NTFS_DIRTY_FLAGS dirty) break; break; } } /* Cache current volume flags. */ /* Cache current volume flags. */ if (info_flags != info->flags) { sbi->volume.flags = info->flags; sbi->volume.flags = info->flags; mi->dirty = true; mi->dirty = true; } err = 0; err = 0; out: out: Loading Loading
fs/ntfs3/fsntfs.c +7 −2 Original line number Original line Diff line number Diff line Loading @@ -925,6 +925,7 @@ int ntfs_set_state(struct ntfs_sb_info *sbi, enum NTFS_DIRTY_FLAGS dirty) struct VOLUME_INFO *info; struct VOLUME_INFO *info; struct mft_inode *mi; struct mft_inode *mi; struct ntfs_inode *ni; struct ntfs_inode *ni; __le16 info_flags; /* /* * Do not change state if fs was real_dirty. * Do not change state if fs was real_dirty. Loading Loading @@ -957,6 +958,8 @@ int ntfs_set_state(struct ntfs_sb_info *sbi, enum NTFS_DIRTY_FLAGS dirty) goto out; goto out; } } info_flags = info->flags; switch (dirty) { switch (dirty) { case NTFS_DIRTY_ERROR: case NTFS_DIRTY_ERROR: ntfs_notice(sbi->sb, "Mark volume as dirty due to NTFS errors"); ntfs_notice(sbi->sb, "Mark volume as dirty due to NTFS errors"); Loading @@ -970,8 +973,10 @@ int ntfs_set_state(struct ntfs_sb_info *sbi, enum NTFS_DIRTY_FLAGS dirty) break; break; } } /* Cache current volume flags. */ /* Cache current volume flags. */ if (info_flags != info->flags) { sbi->volume.flags = info->flags; sbi->volume.flags = info->flags; mi->dirty = true; mi->dirty = true; } err = 0; err = 0; out: out: Loading