summaryrefslogtreecommitdiffstats
path: root/fs/minix
diff options
context:
space:
mode:
Diffstat (limited to 'fs/minix')
-rw-r--r--fs/minix/fsync.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/fs/minix/fsync.c b/fs/minix/fsync.c
index 9510d6364..44606d260 100644
--- a/fs/minix/fsync.c
+++ b/fs/minix/fsync.c
@@ -328,10 +328,14 @@ int V2_minix_sync_file(struct inode * inode, struct file * file)
}
/*
- * The function which is called for file synchronization.
+ * The function which is called for file synchronization. File may be
+ * NULL
*/
-int minix_sync_file(struct inode * inode, struct file * file)
+
+int minix_sync_file(struct file * file, struct dentry *dentry)
{
+ struct inode *inode = dentry->d_inode;
+
if (INODE_VERSION(inode) == MINIX_V1)
return V1_minix_sync_file(inode, file);
else