fs: convert a pile of fsync routines to errseq_t based reporting
This patch converts most of the in-kernel filesystems that do writeback out of the pagecache to report errors using the errseq_t-based infrastructure that was recently added. This allows them to report errors once for each open file description. Most filesystems have a fairly straightforward fsync operation. They call filemap_write_and_wait_range to write back all of the data and wait on it, and then (sometimes) sync out the metadata. For those filesystems this is a straightforward conversion from calling filemap_write_and_wait_range in their fsync operation to calling file_write_and_wait_range. Acked-by:Jan Kara <jack@suse.cz> Acked-by:
Dave Kleikamp <dave.kleikamp@oracle.com> Signed-off-by:
Jeff Layton <jlayton@redhat.com>
Showing
- arch/powerpc/platforms/cell/spufs/file.c 1 addition, 1 deletionarch/powerpc/platforms/cell/spufs/file.c
- drivers/staging/lustre/lustre/llite/file.c 1 addition, 1 deletiondrivers/staging/lustre/lustre/llite/file.c
- drivers/video/fbdev/core/fb_defio.c 1 addition, 1 deletiondrivers/video/fbdev/core/fb_defio.c
- fs/9p/vfs_file.c 2 additions, 2 deletionsfs/9p/vfs_file.c
- fs/affs/file.c 1 addition, 1 deletionfs/affs/file.c
- fs/afs/write.c 1 addition, 1 deletionfs/afs/write.c
- fs/cifs/file.c 2 additions, 2 deletionsfs/cifs/file.c
- fs/exofs/file.c 1 addition, 1 deletionfs/exofs/file.c
- fs/f2fs/file.c 1 addition, 1 deletionfs/f2fs/file.c
- fs/hfs/inode.c 1 addition, 1 deletionfs/hfs/inode.c
- fs/hfsplus/inode.c 1 addition, 1 deletionfs/hfsplus/inode.c
- fs/hostfs/hostfs_kern.c 1 addition, 1 deletionfs/hostfs/hostfs_kern.c
- fs/hpfs/file.c 1 addition, 1 deletionfs/hpfs/file.c
- fs/jffs2/file.c 1 addition, 1 deletionfs/jffs2/file.c
- fs/jfs/file.c 1 addition, 1 deletionfs/jfs/file.c
- fs/ncpfs/file.c 1 addition, 1 deletionfs/ncpfs/file.c
- fs/ntfs/dir.c 1 addition, 1 deletionfs/ntfs/dir.c
- fs/ntfs/file.c 1 addition, 1 deletionfs/ntfs/file.c
- fs/ocfs2/file.c 1 addition, 1 deletionfs/ocfs2/file.c
- fs/reiserfs/dir.c 1 addition, 1 deletionfs/reiserfs/dir.c
Loading
Please register or sign in to comment