Skip to contentSkip to conversation

advice on how to use path_get/put()

DISCUSSION Krzysztof Błaszkowski 1 participant 1 message Mar 6, 2018 VFS

lore
Share & tools
lore
#0 lore raw

Hello,

I look for advice regarding usage of these two function I mentioned. I'd like to be confident of that dentry - a member of structure path may be null for a while and mnt not.
Can it happen during rcu_walk ? I reckon that it doesn't happen when lookup falls into ref_walk and legitimize_path() evaluates the dentry pointer.

Is it mandatory to call path_get/put under fs->lock ? Are there other precautions I should know about ?

Thanks,

Signature · 1 line
Krzysztof Blaszkowski