diff options
| author | Al Viro <[email protected]> | 2025-02-24 01:18:15 +0000 |
|---|---|---|
| committer | Al Viro <[email protected]> | 2025-06-11 17:39:52 +0000 |
| commit | 691fb82ca6ccdcdb9e60e754b55659271d5280e7 (patch) | |
| tree | 8e1316e8b13c3bdb13a4278931dfed387722fc6c /Documentation/filesystems | |
| parent | simple_lookup(): just set DCACHE_DONTCACHE (diff) | |
| download | kernel-691fb82ca6ccdcdb9e60e754b55659271d5280e7.tar.gz kernel-691fb82ca6ccdcdb9e60e754b55659271d5280e7.zip | |
make d_set_d_op() static
Convert the last user (d_alloc_pseudo()) and be done with that.
Any out-of-tree filesystem using it should switch to d_splice_alias_ops()
or, better yet, check whether it really needs to have ->d_op vary among
its dentries.
Reviewed-by: Christian Brauner <[email protected]>
Signed-off-by: Al Viro <[email protected]>
Diffstat (limited to 'Documentation/filesystems')
| -rw-r--r-- | Documentation/filesystems/porting.rst | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Documentation/filesystems/porting.rst b/Documentation/filesystems/porting.rst index b16139e91942..579f17df46cf 100644 --- a/Documentation/filesystems/porting.rst +++ b/Documentation/filesystems/porting.rst @@ -1256,3 +1256,14 @@ an extra reference to new mount - it should be returned with refcount 1. If your filesystem sets the default dentry_operations, use set_default_d_op() rather than manually setting sb->s_d_op. + +--- + +**mandatory** + +d_set_d_op() is no longer exported (or public, for that matter); _if_ +your filesystem really needed that, make use of d_splice_alias_ops() +to have them set. Better yet, think hard whether you need different +->d_op for different dentries - if not, just use set_default_d_op() +at mount time and be done with that. Currently procfs is the only +thing that really needs ->d_op varying between dentries. |
