While converting to RST a few minor grammar mistakes were noticed. Fix these now the conversion is done. Fix minor grammar mistakes. Tested-by: Randy Dunlap <rdunlap@xxxxxxxxxxxxx> Signed-off-by: Tobin C. Harding <tobin@xxxxxxxxxx> --- Documentation/filesystems/vfs.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Documentation/filesystems/vfs.rst b/Documentation/filesystems/vfs.rst index bd8f7891f44b..12b8e90403eb 100644 --- a/Documentation/filesystems/vfs.rst +++ b/Documentation/filesystems/vfs.rst @@ -1111,13 +1111,13 @@ defined: - ``d_dname``: called when the pathname of a dentry should be generated. Useful for some pseudo filesystems (sockfs, pipefs, ...) to delay pathname generation. (Instead of doing it when dentry is created, - it's done only when the path is needed.). Real filesystems probably - dont want to use it, because their dentries are present in global + it's done only when the path is needed.) Real filesystems probably + don't want to use it, because their dentries are present in global dcache hash, so their hash should be an invariant. As no lock is held, d_dname() should not try to modify the dentry itself, unless appropriate SMP safety is used. CAUTION : d_path() logic is quite tricky. The correct way to return for example "Hello" is to put it at - the end of the buffer, and returns a pointer to the first char. + the end of the buffer, and return a pointer to the first char. dynamic_dname() helper function is provided to take care of this. .. code-block:: c @@ -1211,7 +1211,7 @@ manipulate dentries: d_instantiate(). - ``d_instantiate``: add a dentry to the alias hash list for the inode and - updates the "d_inode" member. The "i_count" member in the inode + update the "d_inode" member. The "i_count" member in the inode structure should be set/incremented. If the inode pointer is NULL, the dentry is called a "negative dentry". This function is commonly called when an inode is created for an existing negative dentry. -- 2.21.0