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-06-08 10:04:54 +0200 committer: Al Viro <viro@zeniv.linux.org.uk> 2009-06-11 21:36:15 -0400 commit: 58bc5bbb873eb5d86126a3fd3ff02aaa69ec15d0 parent: f83d6d46e7adf241a064a4a425e5cd8a8fd8925f
Commit Summary:
hfs: add ->sync_fs
Diffstat:
1 file changed, 10 insertions, 0 deletions
diff --git a/fs/hfs/super.c b/fs/hfs/super.c
index 3aac41751030..6f833dc8e910 100644
--- a/fs/hfs/super.c
+++ b/fs/hfs/super.c
@@ -58,6 +58,16 @@ static void hfs_write_super(struct super_block *sb)
 	unlock_super(sb);
 }
 
+static int hfs_sync_fs(struct super_block *sb, int wait)
+{
+	lock_super(sb);
+	hfs_mdb_commit(sb);
+	sb->s_dirt = 0;
+	unlock_super(sb);
+
+	return 0;
+}
+
 /*
  * hfs_put_super()
  *
@@ -172,6 +182,7 @@ static const struct super_operations hfs_super_operations = {
 	.clear_inode	= hfs_clear_inode,
 	.put_super	= hfs_put_super,
 	.write_super	= hfs_write_super,
+	.sync_fs	= hfs_sync_fs,
 	.statfs		= hfs_statfs,
 	.remount_fs     = hfs_remount,
 	.show_options	= hfs_show_options,