mm/vmscan: change generic_file_write() comment to do_sync_write()
Subsystems (3)
PATCH 1/1 mm/vmscan: change generic_file_write() comment to do_sync_write()
Commit 543ade1fc9 (Streamline generic_file_* interfaces and filemap cleanups) removed generic_file_write() in filemap. For consistency, change the comment in vmscan pageout() to do_sync_write().
--- mm/vmscan.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
mm/vmscan.c +1 -1
@@ -358,7 +358,7 @@ static pageout_t pageout(struct page *page, struct address_space *mapping,* stalls if we need to run get_block(). We could test * PagePrivate for that. * -* If this process is currently in generic_file_write() against +* If this process is currently in do_sync_write() against * this page's queue, we can perform writeback even if that * will block. *
Signature · 7 lines
1.6.0.4 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Quoted 3 lines · Vincent Li
Commit
543ade1fc9(Streamline generic_file_* interfaces and filemap cleanups) removedgeneric_file_write()in filemap. For consistency, change the comment in vmscanpageout()todo_sync_write().
I think the right replacement would be __generic_file_aio_write. But from a quick glance over the code don't have the slightest idea what it is referring to.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Quoted 6 lines · Christoph Hellwig
Quoted 3 lines · Vincent Li
Commit
543ade1fc9(Streamline generic_file_* interfaces and filemap cleanups) removedgeneric_file_write()in filemap. For consistency, change the comment in vmscanpageout()todo_sync_write().I think the right replacement would be
__generic_file_aio_write. But
There is no __generic_file_aio_write, but __generic_file_aio_write_nolock, generic_file_aio_write and generic_file_aio_write_nolock.
I read the commit 543ade1fc9, it seems it replaced all .write = generic_file_write to .write = do_sync_write. I thought they are the same.
Quoted 2 lines
from a quick glance over the code don't have the slightest idea what it is referring to.
I read the code over and over again, still no clue about the comment :-(.
Vincent Li
Biomedical Research Center
University of British Columbia
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Quoted 2 lines · Vincent Li
There is no
__generic_file_aio_write, but__generic_file_aio_write_nolock,generic_file_aio_writeandgeneric_file_aio_write_nolock.
Indeed right now there is, but it gets renamed to __generic_file_aio_write in a patchset queued up ;-)
Quoted 3 lines
I read the commit
543ade1fc9, it seems it replaced all .write =generic_file_writeto .write =do_sync_write. I thought they are the same.
That's true. But do_sync_write is just a wrapper waiting for the .aio_write method, for which the generic_file_write equivalent is generic_file_aio_writev which calls into the above fuction.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
PATCH 1/1 mm/vmscan: change comment generic_file_write to __generic_file_aio_write
In reply to Vincent LiCommit 543ade1fc9 (Streamline generic_file_* interfaces and filemap cleanups) removed generic_file_write() in filemap. Change the comment in vmscan pageout() to __generic_file_aio_write().
--- mm/vmscan.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
mm/vmscan.c +1 -1
@@ -358,7 +358,7 @@ static pageout_t pageout(struct page *page, struct address_space *mapping,* stalls if we need to run get_block(). We could test * PagePrivate for that. * -* If this process is currently in generic_file_write() against +* If this process is currently in __generic_file_aio_write() against * this page's queue, we can perform writeback even if that * will block. *
Signature · 7 lines
1.6.0.4 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"[email protected]"> [email protected] </a>