ext4: correct comment references to ext4_ext_direct_IO()
PATCH 1/1 ext4: correct comment references to ext4_ext_direct_IO()
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().
--- fs/ext4/inode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
fs/ext4/inode.c +2 -2
@@ -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))
Signature · 1 line
2.1.4
Quoted 6 lines · Eric Whitney
Commit
914f82a32d0268847"ext4: refactor direct IO code" deletedext4_ext_direct_IO(), but references to that function remain in comments. Update them to refer toext4_direct_IO_write().Signed-off-by Eric Whitney <[email protected]>
Quoted 27 lines
---
fs/ext4/inode.c| 4 ++--1 file changed, 2 insertions(+), 2 deletions(-)fs/ext4/inode.c +2
-3@@ -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)) --
Quoted 2 lines
2.1.4
Cheers, Andreas
Quoted 5 lines · Eric Whitney
Commit
914f82a32d0268847"ext4: refactor direct IO code" deletedext4_ext_direct_IO(), but references to that function remain in comments. Update them to refer toext4_direct_IO_write().Signed-off-by Eric Whitney <[email protected]>
Looks good to me. You can add:
Honza
Quoted 29 lines
--- fs/ext4/inode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)fs/ext4/inode.c +2
-2@@ -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))Signature · 1 line
2.1.4
Signature · 2 lines
Jan Kara <[email protected]> SUSE Labs, CR
Quoted 5 lines · Eric Whitney
Commit
914f82a32d0268847"ext4: refactor direct IO code" deletedext4_ext_direct_IO(), but references to that function remain in comments. Update them to refer toext4_direct_IO_write().Signed-off-by Eric Whitney <[email protected]>
Thanks, applied.
- Ted