Skip to contentSkip to conversation

VFS: d_duplicate: repair comments to avoid kernel-doc warnings

PATCH Superseded Randy Dunlap 2 participants 3 messages Sep 28 – Sep 30 VFS

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 VFS: d_duplicate: repair comments to avoid kernel-doc warnings

Use a typical list style for comments to prevent kernel-doc warnings:

Documentation/filesystems/api-summary:20: ../fs/dcache.c:2029: ERROR: Unexpected indentation. [docutils] Documentation/filesystems/api-summary:20: ../fs/dcache.c:2030: WARNING: Block quote ends without a blank line; unexpected unindent. [docutils]

Also, modify the spelling of "whiteout" to match all other uses in the kernel source tree and to be consistent on the same line.

Fixes 33d76519f0cc ("VFS: add d_duplicate()")

---
Cc: NeilBrown <[email protected]>
Cc: Alexander Viro <[email protected]>
Cc: Christian Brauner <[email protected]>
Cc: Jan Kara <[email protected]>
Cc: [email protected]

 fs/dcache.c |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
fs/dcache.c +4 -3
@@ -2025,10 +2025,11 @@ EXPORT_SYMBOL(d_alloc);
  * @dentry: the dentry to duplicate
  *
  * Some rename operations need to be combined with another operation
- * inside the filesystem.
- * 1/ A cluster filesystem when renaming to an in-use file might need to
+ * inside the filesystem::
+ *
+ * 1. A cluster filesystem when renaming to an in-use file might need to
  *   first "silly-rename" that target out of the way before the main rename
- * 2/ A filesystem that supports white-out might want to create a whiteout
+ * 2. A filesystem that supports whiteout might want to create a whiteout
  *   in place of the file being moved.
  *
  * For this they need two dentries which temporarily have the same name,
reviewer Reviewed-by on v1 1/1
#1 lore raw
Quoted 10 lines · Randy Dunlap

Use a typical list style for comments to prevent kernel-doc warnings:

Documentation/filesystems/api-summary:20: ../fs/dcache.c:2029: ERROR: Unexpected indentation. [docutils] Documentation/filesystems/api-summary:20: ../fs/dcache.c:2030: WARNING: Block quote ends without a blank line; unexpected unindent. [docutils]

Also, modify the spelling of "whiteout" to match all other uses in the kernel source tree and to be consistent on the same line.

Fixes 33d76519f0cc ("VFS: add d_duplicate()")

Looks good. Feel free to add:

Honza

Quoted 27 lines

---
Cc: NeilBrown <[email protected]>
Cc: Alexander Viro <[email protected]>
Cc: Christian Brauner <[email protected]>
Cc: Jan Kara <[email protected]>
Cc: [email protected]

 fs/dcache.c |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
fs/dcache.c +4 -3
@@ -2025,10 +2025,11 @@ EXPORT_SYMBOL(d_alloc);
  * @dentry: the dentry to duplicate
  *
  * Some rename operations need to be combined with another operation
- * inside the filesystem.
- * 1/ A cluster filesystem when renaming to an in-use file might need to
+ * inside the filesystem::
+ *
+ * 1. A cluster filesystem when renaming to an in-use file might need to
  *   first "silly-rename" that target out of the way before the main rename
- * 2/ A filesystem that supports white-out might want to create a whiteout
+ * 2. A filesystem that supports whiteout might want to create a whiteout
  *   in place of the file being moved.
  *
  * For this they need two dentries which temporarily have the same name,
Signature · 2 lines
Jan Kara <[email protected]>
SUSE Labs, CR
#2 lore raw
In reply to Randy Dunlap

I need to send a v2 of this patch...
Please do not apply this one.

Quoted 37 lines · Randy Dunlap

Use a typical list style for comments to prevent kernel-doc warnings:

Documentation/filesystems/api-summary:20: ../fs/dcache.c:2029: ERROR: Unexpected indentation. [docutils] Documentation/filesystems/api-summary:20: ../fs/dcache.c:2030: WARNING: Block quote ends without a blank line; unexpected unindent. [docutils]

Also, modify the spelling of "whiteout" to match all other uses in the kernel source tree and to be consistent on the same line.

Fixes 33d76519f0cc ("VFS: add d_duplicate()")

---
Cc: NeilBrown <[email protected]>
Cc: Alexander Viro <[email protected]>
Cc: Christian Brauner <[email protected]>
Cc: Jan Kara <[email protected]>
Cc: [email protected]

 fs/dcache.c |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
fs/dcache.c +4 -3
@@ -2025,10 +2025,11 @@ EXPORT_SYMBOL(d_alloc);
  * @dentry: the dentry to duplicate
  *
  * Some rename operations need to be combined with another operation
- * inside the filesystem.
- * 1/ A cluster filesystem when renaming to an in-use file might need to
+ * inside the filesystem::
+ *
+ * 1. A cluster filesystem when renaming to an in-use file might need to
  *   first "silly-rename" that target out of the way before the main rename
- * 2/ A filesystem that supports white-out might want to create a whiteout
+ * 2. A filesystem that supports whiteout might want to create a whiteout
  *   in place of the file being moved.
  *
  * For this they need two dentries which temporarily have the same name,
Signature · 1 line
~Randy