diff options
author | Nick Piggin <npiggin@kernel.dk> | 2011-01-07 17:50:06 +1100 |
---|---|---|
committer | Nick Piggin <npiggin@kernel.dk> | 2011-01-07 17:50:31 +1100 |
commit | 873feea09ebc980cbd3631b767356ce1eee65ec1 (patch) | |
tree | 59a8fce9b138086abee7cf845f62ff70a390cf81 /include | |
parent | ceb5bdc2d246f6d81cf61ed70f325308a11821d2 (diff) | |
download | linux-3.10-873feea09ebc980cbd3631b767356ce1eee65ec1.tar.gz linux-3.10-873feea09ebc980cbd3631b767356ce1eee65ec1.tar.bz2 linux-3.10-873feea09ebc980cbd3631b767356ce1eee65ec1.zip |
fs: dcache per-inode inode alias locking
dcache_inode_lock can be replaced with per-inode locking. Use existing
inode->i_lock for this. This is slightly non-trivial because we sometimes
need to find the inode from the dentry, which requires d_inode to be
stabilised (either with refcount or d_lock).
Signed-off-by: Nick Piggin <npiggin@kernel.dk>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/dcache.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/dcache.h b/include/linux/dcache.h index 5f0392ef759..d719e4de804 100644 --- a/include/linux/dcache.h +++ b/include/linux/dcache.h @@ -191,7 +191,6 @@ struct dentry_operations { #define DCACHE_OP_REVALIDATE 0x4000 #define DCACHE_OP_DELETE 0x8000 -extern spinlock_t dcache_inode_lock; extern seqlock_t rename_lock; static inline int dname_external(struct dentry *dentry) |