]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - fs/f2fs/recovery.c
f2fs: merge flags in struct f2fs_sb_info
[karo-tx-linux.git] / fs / f2fs / recovery.c
index c4211a5862df65d9d1ad81a9a5681d513561774f..41afb9534bbdcb66a20ea6650fc71f62a8b99034 100644 (file)
@@ -346,6 +346,10 @@ static int do_recover_data(struct f2fs_sb_info *sbi, struct inode *inode,
        if (IS_INODE(page)) {
                recover_inline_xattr(inode, page);
        } else if (f2fs_has_xattr_block(ofs_of_node(page))) {
+               /*
+                * Deprecated; xattr blocks should be found from cold log.
+                * But, we should remain this for backward compatibility.
+                */
                recover_xattr_data(inode, page, blkaddr);
                goto out;
        }
@@ -504,7 +508,7 @@ int recover_fsync_data(struct f2fs_sb_info *sbi)
        INIT_LIST_HEAD(&inode_list);
 
        /* step #1: find fsynced inode numbers */
-       sbi->por_doing = true;
+       set_sbi_flag(sbi, SBI_POR_DOING);
 
        /* prevent checkpoint */
        mutex_lock(&sbi->cp_mutex);
@@ -537,7 +541,7 @@ out:
                truncate_inode_pages_final(META_MAPPING(sbi));
        }
 
-       sbi->por_doing = false;
+       clear_sbi_flag(sbi, SBI_POR_DOING);
        if (err) {
                discard_next_dnode(sbi, blkaddr);