diff options
author | Minchan Kim <minchan@kernel.org> | 2017-09-07 01:20:00 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-09-07 02:27:25 +0200 |
commit | ae85a8075c5b025b9d503554ddc480a346a24536 (patch) | |
tree | 633d5dda845b81d541008af1633412af06242deb /init/calibrate.c | |
parent | zram: add free space management in backing device (diff) | |
download | linux-ae85a8075c5b025b9d503554ddc480a346a24536.tar.xz linux-ae85a8075c5b025b9d503554ddc480a346a24536.zip |
zram: identify asynchronous IO's return value
For upcoming asynchronous IO like writeback, zram_rw_page should be
aware of that whether requested IO was completed or submitted
successfully, otherwise error.
For the goal, zram_bvec_rw has three return values.
-errno: returns error number
0: IO request is done synchronously
1: IO request is issued successfully.
Link: http://lkml.kernel.org/r/1498459987-24562-7-git-send-email-minchan@kernel.org
Signed-off-by: Minchan Kim <minchan@kernel.org>
Cc: Juneho Choi <juno.choi@lge.com>
Cc: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'init/calibrate.c')
0 files changed, 0 insertions, 0 deletions