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>
Showing
- drivers/staging/pohmelfs/inode.c 1 addition, 5 deletionsdrivers/staging/pohmelfs/inode.c
- fs/exofs/file.c 1 addition, 5 deletionsfs/exofs/file.c
- fs/ext2/dir.c 1 addition, 1 deletionfs/ext2/dir.c
- fs/ext2/ext2.h 0 additions, 1 deletionfs/ext2/ext2.h
- fs/ext2/inode.c 1 addition, 10 deletionsfs/ext2/inode.c
- fs/ext2/xattr.c 1 addition, 1 deletionfs/ext2/xattr.c
- fs/fs-writeback.c 20 additions, 0 deletionsfs/fs-writeback.c
- fs/libfs.c 1 addition, 5 deletionsfs/libfs.c
- fs/nfsd/vfs.c 3 additions, 13 deletionsfs/nfsd/vfs.c
- include/linux/fs.h 1 addition, 0 deletionsinclude/linux/fs.h
Loading
Please register or sign in to comment