advice on how to use path_get/put()
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