Skip to content

Commit b1dd3b2

Browse files
akpm00torvalds
authored andcommitted
vfs: rename block_fsync() to blkdev_fsync()
Requested by hch, for consistency now it is exported. Cc: Alexander Viro <viro@zeniv.linux.org.uk> Cc: Anton Blanchard <anton@samba.org> Cc: Christoph Hellwig <hch@lst.de> Cc: Jan Kara <jack@suse.cz> Cc: Jeff Moyer <jmoyer@redhat.com> Cc: Jens Axboe <jens.axboe@oracle.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 55ab3a1 commit b1dd3b2

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎drivers/char/raw.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ static const struct file_operations raw_fops = {
248248
.aio_read = generic_file_aio_read,
249249
.write = do_sync_write,
250250
.aio_write = blkdev_aio_write,
251-
.fsync = block_fsync,
251+
.fsync = blkdev_fsync,
252252
.open = raw_open,
253253
.release= raw_release,
254254
.ioctl = raw_ioctl,

‎fs/block_dev.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ static loff_t block_llseek(struct file *file, loff_t offset, int origin)
404404
* NULL first argument is nfsd_sync_dir() and that's not a directory.
405405
*/
406406

407-
int block_fsync(struct file *filp, struct dentry *dentry, int datasync)
407+
int blkdev_fsync(struct file *filp, struct dentry *dentry, int datasync)
408408
{
409409
struct block_device *bdev = I_BDEV(filp->f_mapping->host);
410410
int error;
@@ -418,7 +418,7 @@ int block_fsync(struct file *filp, struct dentry *dentry, int datasync)
418418
error = 0;
419419
return error;
420420
}
421-
EXPORT_SYMBOL(block_fsync);
421+
EXPORT_SYMBOL(blkdev_fsync);
422422

423423
/*
424424
* pseudo-fs
@@ -1482,7 +1482,7 @@ const struct file_operations def_blk_fops = {
14821482
.aio_read = generic_file_aio_read,
14831483
.aio_write = blkdev_aio_write,
14841484
.mmap = generic_file_mmap,
1485-
.fsync = block_fsync,
1485+
.fsync = blkdev_fsync,
14861486
.unlocked_ioctl = block_ioctl,
14871487
#ifdef CONFIG_COMPAT
14881488
.compat_ioctl = compat_blkdev_ioctl,

‎include/linux/fs.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2212,7 +2212,7 @@ extern int generic_segment_checks(const struct iovec *iov,
22122212
/* fs/block_dev.c */
22132213
extern ssize_t blkdev_aio_write(struct kiocb *iocb, const struct iovec *iov,
22142214
unsigned long nr_segs, loff_t pos);
2215-
extern int block_fsync(struct file *filp, struct dentry *dentry, int datasync);
2215+
extern int blkdev_fsync(struct file *filp, struct dentry *dentry, int datasync);
22162216

22172217
/* fs/splice.c */
22182218
extern ssize_t generic_file_splice_read(struct file *, loff_t *,

0 commit comments

Comments
 (0)