public inbox for linux-ext4@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ext4: correct comment references to ext4_ext_direct_IO()
@ 2017-07-14 21:04 Eric Whitney
  2017-07-14 21:18 ` Andreas Dilger
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Eric Whitney @ 2017-07-14 21:04 UTC (permalink / raw)
  To: linux-ext4; +Cc: tytso

Commit 914f82a32d0268847 "ext4: refactor direct IO code" deleted
ext4_ext_direct_IO(), but references to that function remain in
comments.  Update them to refer to ext4_direct_IO_write().

Signed-off-by: Eric Whitney <enwlinux@gmail.com>
---
 fs/ext4/inode.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c
index 3c600f0..2e6c022 100644
--- a/fs/ext4/inode.c
+++ b/fs/ext4/inode.c
@@ -892,7 +892,7 @@ static int ext4_dio_get_block_unwritten_async(struct inode *inode,
 /*
  * Get block function for non-AIO DIO writes when we create unwritten extent if
  * blocks are not allocated yet. The extent will be converted to written
- * after IO is complete from ext4_ext_direct_IO() function.
+ * after IO is complete by ext4_direct_IO_write().
  */
 static int ext4_dio_get_block_unwritten_sync(struct inode *inode,
 		sector_t iblock, struct buffer_head *bh_result,	int create)
@@ -907,7 +907,7 @@ static int ext4_dio_get_block_unwritten_sync(struct inode *inode,
 
 	/*
 	 * Mark inode as having pending DIO writes to unwritten extents.
-	 * ext4_ext_direct_IO() checks this flag and converts extents to
+	 * ext4_direct_IO_write() checks this flag and converts extents to
 	 * written.
 	 */
 	if (!ret && buffer_unwritten(bh_result))
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] ext4: correct comment references to ext4_ext_direct_IO()
  2017-07-14 21:04 [PATCH] ext4: correct comment references to ext4_ext_direct_IO() Eric Whitney
@ 2017-07-14 21:18 ` Andreas Dilger
  2017-07-25 10:56 ` Jan Kara
  2017-07-31  2:28 ` Theodore Ts'o
  2 siblings, 0 replies; 4+ messages in thread
From: Andreas Dilger @ 2017-07-14 21:18 UTC (permalink / raw)
  To: Eric Whitney; +Cc: linux-ext4, tytso

[-- Attachment #1: Type: text/plain, Size: 1549 bytes --]

On Jul 14, 2017, at 2:04 PM, Eric Whitney <enwlinux@gmail.com> wrote:
> 
> Commit 914f82a32d0268847 "ext4: refactor direct IO code" deleted
> ext4_ext_direct_IO(), but references to that function remain in
> comments.  Update them to refer to ext4_direct_IO_write().
> 
> Signed-off-by: Eric Whitney <enwlinux@gmail.com>

Reviewed-by: Andreas Dilger <adilger@dilger.ca>

> ---
> fs/ext4/inode.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c
> index 3c600f0..2e6c022 100644
> --- a/fs/ext4/inode.c
> +++ b/fs/ext4/inode.c
> @@ -892,7 +892,7 @@ static int ext4_dio_get_block_unwritten_async(struct inode *inode,
> /*
>  * Get block function for non-AIO DIO writes when we create unwritten extent if
>  * blocks are not allocated yet. The extent will be converted to written
> - * after IO is complete from ext4_ext_direct_IO() function.
> + * after IO is complete by ext4_direct_IO_write().
>  */
> static int ext4_dio_get_block_unwritten_sync(struct inode *inode,
> 		sector_t iblock, struct buffer_head *bh_result,	int create)
> @@ -907,7 +907,7 @@ static int ext4_dio_get_block_unwritten_sync(struct inode *inode,
> 
> 	/*
> 	 * Mark inode as having pending DIO writes to unwritten extents.
> -	 * ext4_ext_direct_IO() checks this flag and converts extents to
> +	 * ext4_direct_IO_write() checks this flag and converts extents to
> 	 * written.
> 	 */
> 	if (!ret && buffer_unwritten(bh_result))
> --
> 2.1.4
> 


Cheers, Andreas






[-- Attachment #2: Message signed with OpenPGP --]
[-- Type: application/pgp-signature, Size: 195 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] ext4: correct comment references to ext4_ext_direct_IO()
  2017-07-14 21:04 [PATCH] ext4: correct comment references to ext4_ext_direct_IO() Eric Whitney
  2017-07-14 21:18 ` Andreas Dilger
@ 2017-07-25 10:56 ` Jan Kara
  2017-07-31  2:28 ` Theodore Ts'o
  2 siblings, 0 replies; 4+ messages in thread
From: Jan Kara @ 2017-07-25 10:56 UTC (permalink / raw)
  To: Eric Whitney; +Cc: linux-ext4, tytso

On Fri 14-07-17 17:04:26, Eric Whitney wrote:
> Commit 914f82a32d0268847 "ext4: refactor direct IO code" deleted
> ext4_ext_direct_IO(), but references to that function remain in
> comments.  Update them to refer to ext4_direct_IO_write().
> 
> Signed-off-by: Eric Whitney <enwlinux@gmail.com>

Looks good to me. You can add:

Reviewed-by: Jan Kara <jack@suse.cz>

								Honza

> ---
>  fs/ext4/inode.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c
> index 3c600f0..2e6c022 100644
> --- a/fs/ext4/inode.c
> +++ b/fs/ext4/inode.c
> @@ -892,7 +892,7 @@ static int ext4_dio_get_block_unwritten_async(struct inode *inode,
>  /*
>   * Get block function for non-AIO DIO writes when we create unwritten extent if
>   * blocks are not allocated yet. The extent will be converted to written
> - * after IO is complete from ext4_ext_direct_IO() function.
> + * after IO is complete by ext4_direct_IO_write().
>   */
>  static int ext4_dio_get_block_unwritten_sync(struct inode *inode,
>  		sector_t iblock, struct buffer_head *bh_result,	int create)
> @@ -907,7 +907,7 @@ static int ext4_dio_get_block_unwritten_sync(struct inode *inode,
>  
>  	/*
>  	 * Mark inode as having pending DIO writes to unwritten extents.
> -	 * ext4_ext_direct_IO() checks this flag and converts extents to
> +	 * ext4_direct_IO_write() checks this flag and converts extents to
>  	 * written.
>  	 */
>  	if (!ret && buffer_unwritten(bh_result))
> -- 
> 2.1.4
> 
-- 
Jan Kara <jack@suse.com>
SUSE Labs, CR

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] ext4: correct comment references to ext4_ext_direct_IO()
  2017-07-14 21:04 [PATCH] ext4: correct comment references to ext4_ext_direct_IO() Eric Whitney
  2017-07-14 21:18 ` Andreas Dilger
  2017-07-25 10:56 ` Jan Kara
@ 2017-07-31  2:28 ` Theodore Ts'o
  2 siblings, 0 replies; 4+ messages in thread
From: Theodore Ts'o @ 2017-07-31  2:28 UTC (permalink / raw)
  To: Eric Whitney; +Cc: linux-ext4

On Fri, Jul 14, 2017 at 05:04:26PM -0400, Eric Whitney wrote:
> Commit 914f82a32d0268847 "ext4: refactor direct IO code" deleted
> ext4_ext_direct_IO(), but references to that function remain in
> comments.  Update them to refer to ext4_direct_IO_write().
> 
> Signed-off-by: Eric Whitney <enwlinux@gmail.com>

Thanks, applied.

					- Ted

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-07-31  2:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-14 21:04 [PATCH] ext4: correct comment references to ext4_ext_direct_IO() Eric Whitney
2017-07-14 21:18 ` Andreas Dilger
2017-07-25 10:56 ` Jan Kara
2017-07-31  2:28 ` Theodore Ts'o

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox