]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - fs/f2fs/node.h
ntb_hw_switchtec: NT req id mapping table register entry number should be 512
[mirror_ubuntu-bionic-kernel.git] / fs / f2fs / node.h
index 0ee3e5ff49a30b68d4b3040efa79642d989b19e4..206ad72e9c25837e9de8a5a77726faaf09daac1c 100644 (file)
@@ -423,7 +423,7 @@ static inline void set_cold_node(struct inode *inode, struct page *page)
        struct f2fs_node *rn = F2FS_NODE(page);
        unsigned int flag = le32_to_cpu(rn->footer.flag);
 
-       if (S_ISDIR(inode->i_mode))
+       if (inode && S_ISDIR(inode->i_mode))
                flag &= ~(0x1 << COLD_BIT_SHIFT);
        else
                flag |= (0x1 << COLD_BIT_SHIFT);