advice on how to use path_get/put()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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,
-- 
Krzysztof Blaszkowski



[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux