lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:	Mon, 4 Apr 2011 11:36:56 +0800
From:	Hillf Danton <dhillf@...il.com>
To:	linux-kernel@...r.kernel.org
Cc:	William Irwin <wli@...omorphy.com>
Subject: [PATCH] hugetlbfs: simplify destroying inode

Just before reclaimed by the hugetlbfs inode cache, little difference
could be made by initializing the list head of the dentry member of
vfs inode, thus the operation of initialization could be removed to
simplify the destroy of hugetlbfs inode.

Signed-off-by: Hillf Danton <gmail.com>
---

--- a/fs/hugetlbfs/inode.c	2011-03-30 03:09:48.000000000 +0800
+++ b/fs/hugetlbfs/inode.c	2011-04-04 11:27:30.000000000 +0800
@@ -665,7 +665,6 @@ static struct inode *hugetlbfs_alloc_ino
 static void hugetlbfs_i_callback(struct rcu_head *head)
 {
 	struct inode *inode = container_of(head, struct inode, i_rcu);
-	INIT_LIST_HEAD(&inode->i_dentry);
 	kmem_cache_free(hugetlbfs_inode_cachep, HUGETLBFS_I(inode));
 }
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ