summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorNeilBrown <neil@brown.name>2026-10-03 08:35:43 +1000
committerChristian Brauner <brauner@kernel.org>2026-10-16 10:07:55 +0200
commit11f6be214ba3ba33592ade7d0645f235de727999 (patch)
treed5ad157d9f7012a07d0238ad09225bc641187a13 /include/linux
parent9f611778a2738382f9625bd3ef3a7ab46229135c (diff)
VFS: rename lookup_map to dep_map
lockdep has a number of macros which assume the lockdep_map is in a field called "dep_map". If dentry.lookup_map is renamed to dep_map these macros can be used. In this patch we can now use might_lock(). In future lockdep_set_class() will be used. Fixes: 59492f9991dc ("VFS: add lockdep monitoring of DCACHE_PAR_LOOKUP lock.") Signed-off-by: NeilBrown <neil@brown.name> Link: https://patch.msgid.link/20261002223746.3248726-3-neilb@ownmail.net Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/dcache.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/dcache.h b/include/linux/dcache.h
index adf239f8205f..796282817181 100644
--- a/include/linux/dcache.h
+++ b/include/linux/dcache.h
@@ -117,7 +117,7 @@ struct dentry {
*/
/* lockdep tracking of DCACHE_PAR_LOOKUP locks */
- struct lockdep_map lookup_map;
+ struct lockdep_map dep_map;
struct list_head d_lru; /* LRU list */
struct hlist_node d_sib; /* child of parent list */
struct hlist_head d_children; /* our children */
@@ -571,7 +571,7 @@ unsigned long vfs_pressure_ratio(unsigned long val);
static inline void d_lookup_release(struct dentry *dentry)
{
if (d_in_lookup(dentry))
- lock_map_release(&dentry->lookup_map);
+ lock_map_release(&dentry->dep_map);
}
/**
@@ -585,7 +585,7 @@ static inline void d_lookup_release(struct dentry *dentry)
static inline void d_lookup_acquire(struct dentry *dentry)
{
if (d_in_lookup(dentry))
- lock_map_acquire_try(&dentry->lookup_map);
+ lock_map_acquire_try(&dentry->dep_map);
}
/**