VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Christoph Hellwig <hch@lst.de> 2009-04-28 18:00:26 +0200 committer: Al Viro <viro@zeniv.linux.org.uk> 2009-06-11 21:36:06 -0400 commit: 8c85e125124a473d6f3e9bb187b0b84207f81d91 parent: 517bfae28353e996160518add4d00033d3886e61
Commit Summary:
remove ->write_super call in generic_shutdown_super
Diffstat:
1 file changed, 2 insertions, 0 deletions
diff --git a/fs/hfs/super.c b/fs/hfs/super.c
index a36bb749926d..e071e6d06463 100644
--- a/fs/hfs/super.c
+++ b/fs/hfs/super.c
@@ -65,6 +65,8 @@ static void hfs_write_super(struct super_block *sb)
  */
 static void hfs_put_super(struct super_block *sb)
 {
+	if (sb->s_dirt)
+		hfs_write_super(sb);
 	hfs_mdb_close(sb);
 	/* release the MDB's resources */
 	hfs_mdb_put(sb);