Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 147881
b: refs/heads/master
c: f83d6d4
h: refs/heads/master
i:
  147879: ac8a6d0
v: v3
  • Loading branch information
Christoph Hellwig authored and Al Viro committed Jun 12, 2009
1 parent 709fe55 commit c6c4dbf
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 40f31dd47e7c3d15af1f9845eda0fa0c4c33f32f
refs/heads/master: f83d6d46e7adf241a064a4a425e5cd8a8fd8925f
11 changes: 11 additions & 0 deletions trunk/fs/fat/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,16 @@ static void fat_write_super(struct super_block *sb)
unlock_super(sb);
}

static int fat_sync_fs(struct super_block *sb, int wait)
{
lock_super(sb);
fat_clusters_flush(sb);
sb->s_dirt = 0;
unlock_super(sb);

return 0;
}

static void fat_put_super(struct super_block *sb)
{
struct msdos_sb_info *sbi = MSDOS_SB(sb);
Expand Down Expand Up @@ -643,6 +653,7 @@ static const struct super_operations fat_sops = {
.delete_inode = fat_delete_inode,
.put_super = fat_put_super,
.write_super = fat_write_super,
.sync_fs = fat_sync_fs,
.statfs = fat_statfs,
.clear_inode = fat_clear_inode,
.remount_fs = fat_remount,
Expand Down

0 comments on commit c6c4dbf

Please sign in to comment.