fs: only inc/dec inode->i_dio_count for file systems aio-dio-3.7
authorJens Axboe <axboe@kernel.dk>
Fri, 14 Dec 2012 08:16:19 +0000 (09:16 +0100)
committerJens Axboe <axboe@kernel.dk>
Fri, 14 Dec 2012 12:28:12 +0000 (13:28 +0100)
commit60fd4662d1fa4de6cf6ca28f2b69eeed6bf75f6a
tree599e004d2ecfbd02ba1077e99546776448687b56
parent8a2b425ef7a436674eba4baab9322f45b657a6b5
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