|
@@ -704,6 +704,11 @@ static inline int get_pages(struct f2fs_sb_info *sbi, int count_type)
|
|
|
return atomic_read(&sbi->nr_pages[count_type]);
|
|
|
}
|
|
|
|
|
|
+static inline int get_dirty_dents(struct inode *inode)
|
|
|
+{
|
|
|
+ return atomic_read(&F2FS_I(inode)->dirty_dents);
|
|
|
+}
|
|
|
+
|
|
|
static inline int get_blocktype_secs(struct f2fs_sb_info *sbi, int block_type)
|
|
|
{
|
|
|
unsigned int pages_per_sec = sbi->segs_per_sec *
|