]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - fs/fat/file.c
drop unused dentry argument to ->fsync
[net-next-2.6.git] / fs / fat / file.c
index a14c2f6a489e41bc2a6f23693da0ceac7da792ee..29a576944374c1239534e53a10cbb47c7311e815 100644 (file)
@@ -149,12 +149,12 @@ static int fat_file_release(struct inode *inode, struct file *filp)
        return 0;
 }
 
-int fat_file_fsync(struct file *filp, struct dentry *dentry, int datasync)
+int fat_file_fsync(struct file *filp, int datasync)
 {
-       struct inode *inode = dentry->d_inode;
+       struct inode *inode = filp->f_mapping->host;
        int res, err;
 
-       res = simple_fsync(filp, dentry, datasync);
+       res = simple_fsync(filp, datasync);
        err = sync_mapping_buffers(MSDOS_SB(inode->i_sb)->fat_inode->i_mapping);
 
        return res ? res : err;