lkml.org 
[lkml]   [2010]   [Nov]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 3/4] fs: Use RCU freeing of inodes via SLAB_DESTROY_BY_RCU
Date
From: Dave Chinner <dchinner@redhat.com>

Change the inode caches to use RCU freed inodes via the SLAB_DESTROY_BY_RCU
method. This is the first step in converting the inode hash lookups to use RCU
methods.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
---
include/linux/slab.h | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/include/linux/slab.h b/include/linux/slab.h
index dca23c5..1fea5f1 100644
--- a/include/linux/slab.h
+++ b/include/linux/slab.h
@@ -96,6 +96,7 @@
* Set the default flags necessary for inode caches manipulated by the VFS.
*/
#define SLAB_INODE_CACHE (SLAB_MEM_SPREAD | \
+ SLAB_DESTROY_BY_RCU | \
SLAB_RECLAIM_ACCOUNT)

/*
--
1.7.2.3


\
 
 \ /
  Last update: 2010-11-08 08:33    [W:0.079 / U:0.040 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site