fs: move inode_dio_wait calls into ->setattr
authorChristoph Hellwig <hch@infradead.org>
Fri, 24 Jun 2011 18:29:45 +0000 (14:29 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 21 Jul 2011 00:47:47 +0000 (20:47 -0400)
commit562c72aa57c36b178eacc3500a0215651eca9429
tree2c522c53ab26fc72e85e08747a08e3dca1207c87
parent11b80f459adaf91a712f95e7734a17655a36bf30
fs: move inode_dio_wait calls into ->setattr

Let filesystems handle waiting for direct I/O requests themselves instead
of doing it beforehand.  This means filesystem-specific locks to prevent
new dio referenes from appearing can be held.  This is important to allow
generalizing i_dio_count to non-DIO_LOCKING filesystems.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
12 files changed:
fs/attr.c
fs/ext2/inode.c
fs/ext3/inode.c
fs/ext4/inode.c
fs/fat/file.c
fs/gfs2/bmap.c
fs/hfs/inode.c
fs/hfsplus/inode.c
fs/jfs/file.c
fs/nilfs2/inode.c
fs/ocfs2/file.c
fs/reiserfs/inode.c