Thread (3 messages) read the whole thread 3 messages, 3 authors, 2019-09-24

[Linux-kernel-mentees] [PATCH] fs: direct-io: Fixed a Documentation build warn

From: Matthew Wilcox <hidden>
Date: 2019-09-24 12:23:16
Also in: linux-fsdevel, lkml

On Tue, Sep 24, 2019 at 05:49:25PM +0530, Madhuparna Bhowmik wrote:
Adds the description about
offset within the code.
Why?
quoted hunk ↗ jump to hunk
@@ -255,6 +254,7 @@ void dio_warn_stale_pagecache(struct file *filp)
  */
 static ssize_t dio_complete(struct dio *dio, ssize_t ret, unsigned int flags)
 {
+	/* offset: the byte offset in the file of the completed operation */
 	loff_t offset = dio->iocb->ki_pos;
 	ssize_t transferred = 0;
 	int err;
This is not normal practice within the Linux kernel.  I suggest reading
section 8 of Documentation/process/coding-style.rst 
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help