diff options
Diffstat (limited to 'fs/sync.c')
-rw-r--r-- | fs/sync.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -25,7 +25,7 @@ | |||
25 | * case write_inode() functions do sync_dirty_buffer() and thus effectively | 25 | * case write_inode() functions do sync_dirty_buffer() and thus effectively |
26 | * write one block at a time. | 26 | * write one block at a time. |
27 | */ | 27 | */ |
28 | static int __fsync_super(struct super_block *sb, int wait) | 28 | static int __sync_filesystem(struct super_block *sb, int wait) |
29 | { | 29 | { |
30 | vfs_dq_sync(sb); | 30 | vfs_dq_sync(sb); |
31 | sync_inodes_sb(sb, wait); | 31 | sync_inodes_sb(sb, wait); |
@@ -43,16 +43,16 @@ static int __fsync_super(struct super_block *sb, int wait) | |||
43 | * superblock. Filesystem data as well as the underlying block | 43 | * superblock. Filesystem data as well as the underlying block |
44 | * device. Takes the superblock lock. | 44 | * device. Takes the superblock lock. |
45 | */ | 45 | */ |
46 | int fsync_super(struct super_block *sb) | 46 | int sync_filesystem(struct super_block *sb) |
47 | { | 47 | { |
48 | int ret; | 48 | int ret; |
49 | 49 | ||
50 | ret = __fsync_super(sb, 0); | 50 | ret = __sync_filesystem(sb, 0); |
51 | if (ret < 0) | 51 | if (ret < 0) |
52 | return ret; | 52 | return ret; |
53 | return __fsync_super(sb, 1); | 53 | return __sync_filesystem(sb, 1); |
54 | } | 54 | } |
55 | EXPORT_SYMBOL_GPL(fsync_super); | 55 | EXPORT_SYMBOL_GPL(sync_filesystem); |
56 | 56 | ||
57 | /* | 57 | /* |
58 | * Sync all the data for all the filesystems (called by sys_sync() and | 58 | * Sync all the data for all the filesystems (called by sys_sync() and |
@@ -92,7 +92,7 @@ restart: | |||
92 | spin_unlock(&sb_lock); | 92 | spin_unlock(&sb_lock); |
93 | down_read(&sb->s_umount); | 93 | down_read(&sb->s_umount); |
94 | if (sb->s_root) | 94 | if (sb->s_root) |
95 | __fsync_super(sb, wait); | 95 | __sync_filesystem(sb, wait); |
96 | up_read(&sb->s_umount); | 96 | up_read(&sb->s_umount); |
97 | /* restart only when sb is no longer on the list */ | 97 | /* restart only when sb is no longer on the list */ |
98 | spin_lock(&sb_lock); | 98 | spin_lock(&sb_lock); |