Skip to content

Commit 7ea8085

Browse files
Christoph HellwigAl Viro
authored andcommitted
drop unused dentry argument to ->fsync
Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent cc967be commit 7ea8085

69 files changed

Lines changed: 129 additions & 157 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎Documentation/filesystems/Locking‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ prototypes:
380380
int (*open) (struct inode *, struct file *);
381381
int (*flush) (struct file *);
382382
int (*release) (struct inode *, struct file *);
383-
int (*fsync) (struct file *, struct dentry *, int datasync);
383+
int (*fsync) (struct file *, int datasync);
384384
int (*aio_fsync) (struct kiocb *, int datasync);
385385
int (*fasync) (int, struct file *, int);
386386
int (*lock) (struct file *, int, struct file_lock *);

‎Documentation/filesystems/vfs.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -729,7 +729,7 @@ struct file_operations {
729729
int (*open) (struct inode *, struct file *);
730730
int (*flush) (struct file *);
731731
int (*release) (struct inode *, struct file *);
732-
int (*fsync) (struct file *, struct dentry *, int datasync);
732+
int (*fsync) (struct file *, int datasync);
733733
int (*aio_fsync) (struct kiocb *, int datasync);
734734
int (*fasync) (int, struct file *, int);
735735
int (*lock) (struct file *, int, struct file_lock *);

‎arch/powerpc/platforms/cell/spufs/file.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1849,8 +1849,7 @@ static int spufs_mfc_flush(struct file *file, fl_owner_t id)
18491849
return ret;
18501850
}
18511851

1852-
static int spufs_mfc_fsync(struct file *file, struct dentry *dentry,
1853-
int datasync)
1852+
static int spufs_mfc_fsync(struct file *file, int datasync)
18541853
{
18551854
return spufs_mfc_flush(file, NULL);
18561855
}

‎drivers/char/ps3flash.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,8 +305,7 @@ static int ps3flash_flush(struct file *file, fl_owner_t id)
305305
return ps3flash_writeback(ps3flash_dev);
306306
}
307307

308-
static int ps3flash_fsync(struct file *file, struct dentry *dentry,
309-
int datasync)
308+
static int ps3flash_fsync(struct file *file, int datasync)
310309
{
311310
return ps3flash_writeback(ps3flash_dev);
312311
}

‎drivers/mtd/ubi/cdev.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,7 @@ static loff_t vol_cdev_llseek(struct file *file, loff_t offset, int origin)
189189
return new_offset;
190190
}
191191

192-
static int vol_cdev_fsync(struct file *file, struct dentry *dentry,
193-
int datasync)
192+
static int vol_cdev_fsync(struct file *file, int datasync)
194193
{
195194
struct ubi_volume_desc *desc = file->private_data;
196195
struct ubi_device *ubi = desc->vol->ubi;

‎drivers/staging/pohmelfs/inode.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -880,7 +880,7 @@ static struct inode *pohmelfs_alloc_inode(struct super_block *sb)
880880
/*
881881
* We want fsync() to work on POHMELFS.
882882
*/
883-
static int pohmelfs_fsync(struct file *file, struct dentry *dentry, int datasync)
883+
static int pohmelfs_fsync(struct file *file, int datasync)
884884
{
885885
struct inode *inode = file->f_mapping->host;
886886
struct writeback_control wbc = {

‎drivers/usb/gadget/printer.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -794,7 +794,7 @@ printer_write(struct file *fd, const char __user *buf, size_t len, loff_t *ptr)
794794
}
795795

796796
static int
797-
printer_fsync(struct file *fd, struct dentry *dentry, int datasync)
797+
printer_fsync(struct file *fd, int datasync)
798798
{
799799
struct printer_dev *dev = fd->private_data;
800800
unsigned long flags;

‎drivers/video/fb_defio.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ static int fb_deferred_io_fault(struct vm_area_struct *vma,
6666
return 0;
6767
}
6868

69-
int fb_deferred_io_fsync(struct file *file, struct dentry *dentry, int datasync)
69+
int fb_deferred_io_fsync(struct file *file, int datasync)
7070
{
7171
struct fb_info *info = file->private_data;
7272

‎fs/9p/vfs_file.c‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -257,15 +257,13 @@ v9fs_file_write(struct file *filp, const char __user * data,
257257
return total;
258258
}
259259

260-
static int v9fs_file_fsync(struct file *filp, struct dentry *dentry,
261-
int datasync)
260+
static int v9fs_file_fsync(struct file *filp, int datasync)
262261
{
263262
struct p9_fid *fid;
264263
struct p9_wstat wstat;
265264
int retval;
266265

267-
P9_DPRINTK(P9_DEBUG_VFS, "filp %p dentry %p datasync %x\n", filp,
268-
dentry, datasync);
266+
P9_DPRINTK(P9_DEBUG_VFS, "filp %p datasync %x\n", filp, datasync);
269267

270268
fid = filp->private_data;
271269
v9fs_blank_wstat(&wstat);

‎fs/affs/affs.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ extern int affs_add_entry(struct inode *dir, struct inode *inode, struct dent
183183

184184
void affs_free_prealloc(struct inode *inode);
185185
extern void affs_truncate(struct inode *);
186-
int affs_file_fsync(struct file *, struct dentry *, int);
186+
int affs_file_fsync(struct file *, int);
187187

188188
/* dir.c */
189189

0 commit comments

Comments
 (0)