]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - fs/fs-writeback.c
new helper: inode_unhashed()
[mirror_ubuntu-bionic-kernel.git] / fs / fs-writeback.c
index 29e3f409bbd0c437bcc72c8ca2af18f3f68dcd4a..39f44f2e709a068e654ae5bccadbc83afd49df93 100644 (file)
@@ -962,7 +962,7 @@ void __mark_inode_dirty(struct inode *inode, int flags)
                 * dirty list.  Add blockdev inodes as well.
                 */
                if (!S_ISBLK(inode->i_mode)) {
-                       if (hlist_unhashed(&inode->i_hash))
+                       if (inode_unhashed(inode))
                                goto out;
                }
                if (inode->i_state & I_FREEING)