fs/direct-io.c: minor cleanups in do_blockdev_direct_IO
authorNikolay Borisov <[email protected]>
Thu, 5 Apr 2018 23:24:36 +0000 (16:24 -0700)
committerLinus Torvalds <[email protected]>
Fri, 6 Apr 2018 04:36:26 +0000 (21:36 -0700)
commit1c0ff0f1bdeb183608ac9a345996d4d1ebfed632
tree1ca94c2e881984e07a3f44229b593bd0c7e1fbc8
parent5844a486daf2705dcdbfabe869a698bdfe629f54
fs/direct-io.c: minor cleanups in do_blockdev_direct_IO

We already get the block counts and calculate the end block at the
beginning of the function.  Let's use the local variables for
consistency and readability.  No functional changes

[[email protected]: constify the locals to prevent future slipups]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Nikolay Borisov <[email protected]>
Reviewed-by: Jeff Moyer <[email protected]>
Cc: Al Viro <[email protected]>
Cc: Jens Axboe <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
fs/direct-io.c