]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - fs/ext4/ext4.h
ext4: Clean up s_dirt handling
[mirror_ubuntu-bionic-kernel.git] / fs / ext4 / ext4.h
index 19a4de57128ad7e493ec7843050d1fccc7bda8a4..8b56b53328ebfa8a2f27e7b0830eb96da9f86335 100644 (file)
@@ -1860,6 +1860,12 @@ static inline void ext4_unlock_group(struct super_block *sb,
        spin_unlock(ext4_group_lock_ptr(sb, group));
 }
 
+static inline void ext4_mark_super_dirty(struct super_block *sb)
+{
+       if (EXT4_SB(sb)->s_journal == NULL)
+               sb->s_dirt =1;
+}
+
 /*
  * Inodes and files operations
  */