diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2016-07-31 23:37:25 +0300 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2016-07-31 23:37:25 +0300 |
commit | 6fa67e707559303e086303aeecc9e8b91ef497d5 (patch) | |
tree | e5d034b0e9c533bd4e14fc0755432b50d69da2f2 /Documentation/filesystems/porting | |
parent | d3fe19852e96aabe3084c82ec2f3fb4918ab6d1e (diff) | |
download | linux-6fa67e707559303e086303aeecc9e8b91ef497d5.tar.xz |
get rid of 'parent' argument of ->d_compare()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'Documentation/filesystems/porting')
-rw-r--r-- | Documentation/filesystems/porting | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Documentation/filesystems/porting b/Documentation/filesystems/porting index a5fb89cac615..b1bd05ea66b2 100644 --- a/Documentation/filesystems/porting +++ b/Documentation/filesystems/porting @@ -585,3 +585,10 @@ in your dentry operations instead. in the instances. Rationale: !@#!@# security_d_instantiate() needs to be called before we attach dentry to inode and !@#!@##!@$!$#!@#$!@$!@$ smack ->d_instantiate() uses not just ->getxattr() but ->setxattr() as well. +-- +[mandatory] + ->d_compare() doesn't get parent as a separate argument anymore. If you + used it for finding the struct super_block involved, dentry->d_sb will + work just as well; if it's something more complicated, use dentry->d_parent. + Just be careful not to assume that fetching it more than once will yield + the same value - in RCU mode it could change under you. |