]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - fs/inode.c
NFS: Ensure that setattr and getattr wait for O_DIRECT write completion
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 31 May 2012 16:22:33 +0000 (12:22 -0400)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 31 May 2012 18:41:36 +0000 (11:41 -0700)
commit1d59d61f606547f0712aa6971f91f71154071c99
treecb2fd4b9ce3e3ee9440d566d43ea350221edfc8e
parent2d117403b30cd7301af60d7d54b279a9f566d10d
NFS: Ensure that setattr and getattr wait for O_DIRECT write completion

Use the same mechanism as the block devices are using, but move the
helper functions from fs/direct-io.c into fs/inode.c to remove the
dependency on CONFIG_BLOCK.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Cc: Christoph Hellwig <hch@infradead.org>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Fred Isaman <iisaman@netapp.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/direct-io.c
fs/inode.c
fs/nfs/direct.c
fs/nfs/inode.c
fs/nfs/internal.h
include/linux/fs.h