]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - fs/f2fs/node.c
f2fs: skip ->writepages for {mete,node}_inode during recovery
[mirror_ubuntu-bionic-kernel.git] / fs / f2fs / node.c
index f6f46be139f468bc0db5b403c6361ba471475649..fd57ffd88508182ae908b2566b32cbd6f856b03e 100644 (file)
@@ -1687,6 +1687,9 @@ static int f2fs_write_node_pages(struct address_space *mapping,
        struct blk_plug plug;
        long diff;
 
+       if (unlikely(is_sbi_flag_set(sbi, SBI_POR_DOING)))
+               goto skip_write;
+
        /* balancing f2fs's metadata in background */
        f2fs_balance_fs_bg(sbi);