aboutsummaryrefslogtreecommitdiffstats
path: root/fs/f2fs/super.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/f2fs/super.c')
-rw-r--r--fs/f2fs/super.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c
index 541f21ffd8f2..b015b6cd7bd4 100644
--- a/fs/f2fs/super.c
+++ b/fs/f2fs/super.c
@@ -29,6 +29,9 @@
29#include "segment.h" 29#include "segment.h"
30#include "xattr.h" 30#include "xattr.h"
31 31
32#define CREATE_TRACE_POINTS
33#include <trace/events/f2fs.h>
34
32static struct kmem_cache *f2fs_inode_cachep; 35static struct kmem_cache *f2fs_inode_cachep;
33 36
34enum { 37enum {
@@ -134,6 +137,8 @@ int f2fs_sync_fs(struct super_block *sb, int sync)
134{ 137{
135 struct f2fs_sb_info *sbi = F2FS_SB(sb); 138 struct f2fs_sb_info *sbi = F2FS_SB(sb);
136 139
140 trace_f2fs_sync_fs(sb, sync);
141
137 if (!sbi->s_dirty && !get_pages(sbi, F2FS_DIRTY_NODES)) 142 if (!sbi->s_dirty && !get_pages(sbi, F2FS_DIRTY_NODES))
138 return 0; 143 return 0;
139 144