···491491 /* release the page */492492 release_metapage(mp);493493494494- /*495495- * __mark_inode_dirty expects inodes to be hashed. Since we don't496496- * want special inodes in the fileset inode space, we make them497497- * appear hashed, but do not put on any lists. hlist_del()498498- * will work fine and require no locking.499499- */500500- hlist_add_fake(&ip->i_hash);494494+ inode_fake_hash(ip);501495502496 return (ip);503497}
···1253125312541254 inode_sb_list_add(inode);12551255 /* make the inode look hashed for the writeback code */12561256- hlist_add_fake(&inode->i_hash);12561256+ inode_fake_hash(inode);1257125712581258 inode->i_uid = xfs_uid_to_kuid(ip->i_d.di_uid);12591259 inode->i_gid = xfs_gid_to_kgid(ip->i_d.di_gid);
+11
include/linux/fs.h
···685685}686686687687/*688688+ * __mark_inode_dirty expects inodes to be hashed. Since we don't689689+ * want special inodes in the fileset inode space, we make them690690+ * appear hashed, but do not put on any lists. hlist_del()691691+ * will work fine and require no locking.692692+ */693693+static inline void inode_fake_hash(struct inode *inode)694694+{695695+ hlist_add_fake(&inode->i_hash);696696+}697697+698698+/*688699 * inode->i_mutex nesting subclasses for the lock validator:689700 *690701 * 0: the object of the current VFS operation