lkml.org 
[lkml]   [2011]   [Apr]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
Subject[PATCH] hugetlbfs: simplify destroying inode
From
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));
}

\
 
 \ /
  Last update: 2011-04-04 05:39    [W:3.415 / U:0.032 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site