lkml.org 
[lkml]   [2019]   [Mar]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH v2 12/13] docs: filesystems: vfs: Do minor grammar fixes
Date
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@infradead.org>
Signed-off-by: Tobin C. Harding <tobin@kernel.org>
---
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
\
 
 \ /
  Last update: 2019-03-19 00:16    [W:0.124 / U:0.456 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site