fs: only inc/dec inode->i_dio_count for file systems aio-dio
authorJens Axboe <axboe@kernel.dk>
Sun, 21 Apr 2013 04:27:25 +0000 (21:27 -0700)
committerJens Axboe <axboe@kernel.dk>
Mon, 22 Apr 2013 01:29:59 +0000 (19:29 -0600)
commita5615e59e31d70c3c2f70f177edf1c6a5b98aa5f
treeb88235788c3c2afe5f646c3fc72b748e0a575569
parentd16681b307ff5fd259043de36187f175ddf43d9a
fs: only inc/dec inode->i_dio_count for file systems

We don't need truncate protection for block devices, so add a flag
bypassing this cache line dirtying for every IO.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/block_dev.c
fs/direct-io.c
fs/inode.c
include/linux/fs.h