fs: add sync_inode_metadata
authorChristoph Hellwig <hch@lst.de>
Wed, 6 Oct 2010 08:48:20 +0000 (10:48 +0200)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 26 Oct 2010 01:18:19 +0000 (21:18 -0400)
commitc37650161a53c01ddd88587675f9a4adc909a73e
tree85821998de9a6723dedc42488b9491db9692d1e3
parent81fca444001e5a41ab80ce8cf9a5734c00ec6546
fs: add sync_inode_metadata

Add a new helper to write out the inode using the writeback code,
that is including the correct dirty bit and list manipulation.  A few
of filesystems already opencode this, and a lot of others should be
using it instead of using write_inode_now which also writes out the
data.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
drivers/staging/pohmelfs/inode.c
fs/exofs/file.c
fs/ext2/dir.c
fs/ext2/ext2.h
fs/ext2/inode.c
fs/ext2/xattr.c
fs/fs-writeback.c
fs/libfs.c
fs/nfsd/vfs.c
include/linux/fs.h