OSDN Git Service

direct-io: Remove unused DIO_SKIP_DIO_COUNT logic
authorNikolay Borisov <nborisov@suse.com>
Fri, 23 Feb 2018 11:45:29 +0000 (13:45 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 12 Mar 2018 16:21:24 +0000 (10:21 -0600)
commitce3077ee80d6ac1087c06441f4c63ce5f13ef12c
treee02b03b77e82ecbc6bdcb31a260bf5c264273e1d
parentc8f4c36f81623002165dce874fa60bb0c154b10e
direct-io: Remove unused DIO_SKIP_DIO_COUNT logic

This flag was added by fe0f07d08ee3 ("direct-io: only inc/deci
inode->i_dio_count for file systems") as means to optimise the atomic
modificaiton of the variable for blockdevices. However with the advent
of 542ff7bf18c6 ("block: new direct I/O implementation") it became
unused. So let's remove it.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/direct-io.c
include/linux/fs.h