f2fs: move f2fs to use reader-unfair rwsems
[linux-2.6-block.git] / fs / f2fs / recovery.c
index 9683c80ff8c24403e40b1e757b800658bbaa480e..10d152cfa58d101ca79739c84a0091313cf79321 100644 (file)
@@ -796,7 +796,7 @@ int f2fs_recover_fsync_data(struct f2fs_sb_info *sbi, bool check_only)
        INIT_LIST_HEAD(&dir_list);
 
        /* prevent checkpoint */
-       down_write(&sbi->cp_global_sem);
+       f2fs_down_write(&sbi->cp_global_sem);
 
        /* step #1: find fsynced inode numbers */
        err = find_fsync_dnodes(sbi, &inode_list, check_only);
@@ -845,7 +845,7 @@ skip:
        if (!err)
                clear_sbi_flag(sbi, SBI_POR_DOING);
 
-       up_write(&sbi->cp_global_sem);
+       f2fs_up_write(&sbi->cp_global_sem);
 
        /* let's drop all the directory inodes for clean checkpoint */
        destroy_fsync_dnodes(&dir_list, err);