@@ -898,18 +898,18 @@ long prune_icache_sb(struct super_block *sb, struct shrink_control *sc)
898
898
return freed ;
899
899
}
900
900
901
- static void __wait_on_freeing_inode (struct inode * inode , bool locked );
901
+ static void __wait_on_freeing_inode (struct inode * inode , bool is_inode_hash_locked );
902
902
/*
903
903
* Called with the inode lock held.
904
904
*/
905
905
static struct inode * find_inode (struct super_block * sb ,
906
906
struct hlist_head * head ,
907
907
int (* test )(struct inode * , void * ),
908
- void * data , bool locked )
908
+ void * data , bool is_inode_hash_locked )
909
909
{
910
910
struct inode * inode = NULL ;
911
911
912
- if (locked )
912
+ if (is_inode_hash_locked )
913
913
lockdep_assert_held (& inode_hash_lock );
914
914
else
915
915
lockdep_assert_not_held (& inode_hash_lock );
@@ -923,7 +923,7 @@ static struct inode *find_inode(struct super_block *sb,
923
923
continue ;
924
924
spin_lock (& inode -> i_lock );
925
925
if (inode -> i_state & (I_FREEING |I_WILL_FREE )) {
926
- __wait_on_freeing_inode (inode , locked );
926
+ __wait_on_freeing_inode (inode , is_inode_hash_locked );
927
927
goto repeat ;
928
928
}
929
929
if (unlikely (inode -> i_state & I_CREATING )) {
@@ -946,11 +946,11 @@ static struct inode *find_inode(struct super_block *sb,
946
946
*/
947
947
static struct inode * find_inode_fast (struct super_block * sb ,
948
948
struct hlist_head * head , unsigned long ino ,
949
- bool locked )
949
+ bool is_inode_hash_locked )
950
950
{
951
951
struct inode * inode = NULL ;
952
952
953
- if (locked )
953
+ if (is_inode_hash_locked )
954
954
lockdep_assert_held (& inode_hash_lock );
955
955
else
956
956
lockdep_assert_not_held (& inode_hash_lock );
@@ -964,7 +964,7 @@ static struct inode *find_inode_fast(struct super_block *sb,
964
964
continue ;
965
965
spin_lock (& inode -> i_lock );
966
966
if (inode -> i_state & (I_FREEING |I_WILL_FREE )) {
967
- __wait_on_freeing_inode (inode , locked );
967
+ __wait_on_freeing_inode (inode , is_inode_hash_locked );
968
968
goto repeat ;
969
969
}
970
970
if (unlikely (inode -> i_state & I_CREATING )) {
@@ -2297,7 +2297,7 @@ EXPORT_SYMBOL(inode_needs_sync);
2297
2297
* wake_up_bit(&inode->i_state, __I_NEW) after removing from the hash list
2298
2298
* will DTRT.
2299
2299
*/
2300
- static void __wait_on_freeing_inode (struct inode * inode , bool locked )
2300
+ static void __wait_on_freeing_inode (struct inode * inode , bool is_inode_hash_locked )
2301
2301
{
2302
2302
wait_queue_head_t * wq ;
2303
2303
DEFINE_WAIT_BIT (wait , & inode -> i_state , __I_NEW );
@@ -2306,7 +2306,7 @@ static void __wait_on_freeing_inode(struct inode *inode, bool locked)
2306
2306
* Handle racing against evict(), see that routine for more details.
2307
2307
*/
2308
2308
if (unlikely (inode_unhashed (inode ))) {
2309
- WARN_ON (locked );
2309
+ WARN_ON (is_inode_hash_locked );
2310
2310
spin_unlock (& inode -> i_lock );
2311
2311
return ;
2312
2312
}
@@ -2315,11 +2315,11 @@ static void __wait_on_freeing_inode(struct inode *inode, bool locked)
2315
2315
prepare_to_wait (wq , & wait .wq_entry , TASK_UNINTERRUPTIBLE );
2316
2316
spin_unlock (& inode -> i_lock );
2317
2317
rcu_read_unlock ();
2318
- if (locked )
2318
+ if (is_inode_hash_locked )
2319
2319
spin_unlock (& inode_hash_lock );
2320
2320
schedule ();
2321
2321
finish_wait (wq , & wait .wq_entry );
2322
- if (locked )
2322
+ if (is_inode_hash_locked )
2323
2323
spin_lock (& inode_hash_lock );
2324
2324
rcu_read_lock ();
2325
2325
}
0 commit comments