]> git.baikalelectronics.ru Git - kernel.git/commit
fs/direct-io.c: minor cleanups in do_blockdev_direct_IO
authorNikolay Borisov <nborisov@suse.com>
Thu, 5 Apr 2018 23:24:36 +0000 (16:24 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 6 Apr 2018 04:36:26 +0000 (21:36 -0700)
commit0b1c5c67418dfab9c6d5b45b80d7cb5cd5ebaec5
tree1ca94c2e881984e07a3f44229b593bd0c7e1fbc8
parente0ddec5fe761d019496d31ca633521038b042805
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

[akpm@linux-foundation.org: constify the locals to prevent future slipups]
Link: http://lkml.kernel.org/r/1519638870-17756-1-git-send-email-nborisov@suse.com
Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: Jeff Moyer <jmoyer@redhat.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/direct-io.c