diff options
| author | Roel Kluin <[email protected]> | 2010-01-29 10:42:11 +0000 |
|---|---|---|
| committer | Chris Mason <[email protected]> | 2010-02-04 16:31:44 +0000 |
| commit | 014e4ac4f7d9c981750491fa40ea35efadc9ed49 (patch) | |
| tree | 23f98b1cac63db1f12060d3a2d2dbc77b49019b3 /fs/btrfs/file.c | |
| parent | Btrfs: fix race between allocate and release extent buffer. (diff) | |
| download | kernel-014e4ac4f7d9c981750491fa40ea35efadc9ed49.tar.gz kernel-014e4ac4f7d9c981750491fa40ea35efadc9ed49.zip | |
Btrfs: make error return negative in btrfs_sync_file()
It appears the error return should be negative
Signed-off-by: Roel Kluin <[email protected]>
Signed-off-by: Chris Mason <[email protected]>
Diffstat (limited to 'fs/btrfs/file.c')
| -rw-r--r-- | fs/btrfs/file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c index ae96fdae1f7d..413a30dafcda 100644 --- a/fs/btrfs/file.c +++ b/fs/btrfs/file.c @@ -1133,7 +1133,7 @@ int btrfs_sync_file(struct file *file, struct dentry *dentry, int datasync) } mutex_lock(&dentry->d_inode->i_mutex); out: - return ret > 0 ? EIO : ret; + return ret > 0 ? -EIO : ret; } static const struct vm_operations_struct btrfs_file_vm_ops = { |
