mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-23 19:04:45 +03:00
Linux 2.6.35 compat, fops->fsync()
The fsync() callback in the file_operations structure used to take 3 arguments. The callback now only takes 2 arguments because the dentry argument was determined to be unused by all consumers. To handle this a compatibility prototype was added to ensure the right prototype is used. Our implementation never used the dentry argument either so it's just a matter of using the right prototype.
This commit is contained in:
@@ -45,8 +45,7 @@ zpl_readdir(struct file *filp, void *dirent, filldir_t filldir)
|
||||
return (error);
|
||||
}
|
||||
|
||||
static int
|
||||
zpl_fsync(struct file *filp, struct dentry *dentry, int datasync)
|
||||
ZPL_FSYNC_PROTO(zpl_fsync, filp, unused_dentry, datasync)
|
||||
{
|
||||
cred_t *cr;
|
||||
int error;
|
||||
|
||||
Reference in New Issue
Block a user