diff options
| author | Andrey V. Savochkin <saw@saw.sw.com.sg> | 2004-09-16 22:03:20 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-09-16 22:03:20 -0700 |
| commit | 73441a0edd8030afdc0c455272585fb7f4fbeaa0 (patch) | |
| tree | 238825f4ecc3db36e37b459dd66479a2b46fe18b /include/linux/msdos_fs.h | |
| parent | 0855040e79e53064f73b5c34fb7b1ccd196f9b52 (diff) | |
[PATCH] fix for fsync ignoring writing errors
Currently metadata writing errors are ignored and not returned from
sys_fsync on ext2 and ext3 filesystems. That is, at least ext2 and ext3.
Both ext2 and ext3 resort to sync_inode() in their ->sync_inode method,
which in turn calls ->write_inode. ->write_inode method has void type, and
any IO errors happening inside are lost.
Make ->write_inode return the error code?
Signed-off-by: Andrey Savochkin <saw@saw.sw.com.sg>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux/msdos_fs.h')
| -rw-r--r-- | include/linux/msdos_fs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/msdos_fs.h b/include/linux/msdos_fs.h index 6d141394ff3e..951fe570b923 100644 --- a/include/linux/msdos_fs.h +++ b/include/linux/msdos_fs.h @@ -276,7 +276,7 @@ extern void fat_put_super(struct super_block *sb); int fat_fill_super(struct super_block *sb, void *data, int silent, struct inode_operations *fs_dir_inode_ops, int isvfat); extern int fat_statfs(struct super_block *sb, struct kstatfs *buf); -extern void fat_write_inode(struct inode *inode, int wait); +extern int fat_write_inode(struct inode *inode, int wait); extern int fat_notify_change(struct dentry * dentry, struct iattr * attr); /* fat/misc.c */ |
