Skip to content

Commit 158ee7b

Browse files
Christoph Hellwigaxboe
authored andcommitted
block: mark blkdev_fsync static
blkdev_fsync is only used inside of block_dev.c since the removal of the raw drіver. Signed-off-by: Christoph Hellwig <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
1 parent 9f28699 commit 158ee7b

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

fs/block_dev.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -687,7 +687,8 @@ static loff_t block_llseek(struct file *file, loff_t offset, int whence)
687687
return retval;
688688
}
689689

690-
int blkdev_fsync(struct file *filp, loff_t start, loff_t end, int datasync)
690+
static int blkdev_fsync(struct file *filp, loff_t start, loff_t end,
691+
int datasync)
691692
{
692693
struct inode *bd_inode = bdev_file_inode(filp);
693694
struct block_device *bdev = I_BDEV(bd_inode);
@@ -708,7 +709,6 @@ int blkdev_fsync(struct file *filp, loff_t start, loff_t end, int datasync)
708709

709710
return error;
710711
}
711-
EXPORT_SYMBOL(blkdev_fsync);
712712

713713
/**
714714
* bdev_read_page() - Start reading a page from a block device

include/linux/fs.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3246,10 +3246,6 @@ ssize_t vfs_iocb_iter_read(struct file *file, struct kiocb *iocb,
32463246
ssize_t vfs_iocb_iter_write(struct file *file, struct kiocb *iocb,
32473247
struct iov_iter *iter);
32483248

3249-
/* fs/block_dev.c */
3250-
extern int blkdev_fsync(struct file *filp, loff_t start, loff_t end,
3251-
int datasync);
3252-
32533249
/* fs/splice.c */
32543250
extern ssize_t generic_file_splice_read(struct file *, loff_t *,
32553251
struct pipe_inode_info *, size_t, unsigned int);

0 commit comments

Comments
 (0)