aboutsummaryrefslogtreecommitdiffstats
path: root/fs/exofs/super.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/exofs/super.c')
-rw-r--r--fs/exofs/super.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/exofs/super.c b/fs/exofs/super.c
index 9f1985e857e2..3cdb761db8ad 100644
--- a/fs/exofs/super.c
+++ b/fs/exofs/super.c
@@ -258,6 +258,9 @@ static void exofs_put_super(struct super_block *sb)
258 int num_pend; 258 int num_pend;
259 struct exofs_sb_info *sbi = sb->s_fs_info; 259 struct exofs_sb_info *sbi = sb->s_fs_info;
260 260
261 if (sb->s_dirt)
262 exofs_write_super(sb);
263
261 /* make sure there are no pending commands */ 264 /* make sure there are no pending commands */
262 for (num_pend = atomic_read(&sbi->s_curr_pending); num_pend > 0; 265 for (num_pend = atomic_read(&sbi->s_curr_pending); num_pend > 0;
263 num_pend = atomic_read(&sbi->s_curr_pending)) { 266 num_pend = atomic_read(&sbi->s_curr_pending)) {