diff options
-rw-r--r-- | Documentation/filesystems/porting.rst | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/Documentation/filesystems/porting.rst b/Documentation/filesystems/porting.rst index fe0581271d5b..6817614e0820 100644 --- a/Documentation/filesystems/porting.rst +++ b/Documentation/filesystems/porting.rst @@ -1183,12 +1183,11 @@ LOOK_CREATE or LOOKUP_RENAME_TARGET. ** mandatory** -->mkdir() now returns a 'struct dentry *'. If the created inode is -found to already be in cache and have a dentry (often IS_ROOT()), it will -need to be spliced into the given name in place of the given dentry. -That dentry now needs to be returned. If the original dentry is used, -NULL should be returned. Any error should be returned with -ERR_PTR(). +->mkdir() now returns a dentry. If the created inode is found to +already be in cache and have a dentry (often IS_ROOT()), it will need to +be spliced into the given name in place of the given dentry. That dentry +now needs to be returned. If the original dentry is used, NULL should +be returned. Any error should be returned with ERR_PTR(). In general, filesystems which use d_instantiate_new() to install the new inode can safely return NULL. Filesystems which may not have an I_NEW inode |