summaryrefslogtreecommitdiffstats
path: root/fs/udf/fsync.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/udf/fsync.c')
-rw-r--r--fs/udf/fsync.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/udf/fsync.c b/fs/udf/fsync.c
index 7f0901c..b2c472b 100644
--- a/fs/udf/fsync.c
+++ b/fs/udf/fsync.c
@@ -32,6 +32,7 @@ static int udf_fsync_inode(struct inode *, int);
int udf_fsync_file(struct file *file, struct dentry *dentry, int datasync)
{
struct inode *inode = dentry->d_inode;
+
return udf_fsync_inode(inode, datasync);
}
@@ -46,5 +47,6 @@ static int udf_fsync_inode(struct inode *inode, int datasync)
return err;
err |= udf_sync_inode(inode);
+
return err ? -EIO : 0;
}
OpenPOWER on IntegriCloud