drop unused dentry argument to ->fsync
Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
committed by
Al Viro
parent
cc967be547
commit
7ea8085910
11
ipc/shm.c
11
ipc/shm.c
@ -273,16 +273,13 @@ static int shm_release(struct inode *ino, struct file *file)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int shm_fsync(struct file *file, struct dentry *dentry, int datasync)
|
||||
static int shm_fsync(struct file *file, int datasync)
|
||||
{
|
||||
int (*fsync) (struct file *, struct dentry *, int datasync);
|
||||
struct shm_file_data *sfd = shm_file_data(file);
|
||||
int ret = -EINVAL;
|
||||
|
||||
fsync = sfd->file->f_op->fsync;
|
||||
if (fsync)
|
||||
ret = fsync(sfd->file, sfd->file->f_path.dentry, datasync);
|
||||
return ret;
|
||||
if (!sfd->file->f_op->fsync)
|
||||
return -EINVAL;
|
||||
return sfd->file->f_op->fsync(sfd->file, datasync);
|
||||
}
|
||||
|
||||
static unsigned long shm_get_unmapped_area(struct file *file,
|
||||
|
Reference in New Issue
Block a user