projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
squashfs: add missing buffer free
[cascardo/linux.git]
/
fs
/
block_dev.c
diff --git
a/fs/block_dev.c
b/fs/block_dev.c
index
d11d028
..
2a6d019
100644
(file)
--- a/
fs/block_dev.c
+++ b/
fs/block_dev.c
@@
-404,7
+404,7
@@
static loff_t block_llseek(struct file *file, loff_t offset, int origin)
* NULL first argument is nfsd_sync_dir() and that's not a directory.
*/
* NULL first argument is nfsd_sync_dir() and that's not a directory.
*/
-
static int block
_fsync(struct file *filp, struct dentry *dentry, int datasync)
+
int blkdev
_fsync(struct file *filp, struct dentry *dentry, int datasync)
{
struct block_device *bdev = I_BDEV(filp->f_mapping->host);
int error;
{
struct block_device *bdev = I_BDEV(filp->f_mapping->host);
int error;
@@
-418,6
+418,7
@@
static int block_fsync(struct file *filp, struct dentry *dentry, int datasync)
error = 0;
return error;
}
error = 0;
return error;
}
+EXPORT_SYMBOL(blkdev_fsync);
/*
* pseudo-fs
/*
* pseudo-fs
@@
-1481,7
+1482,7
@@
const struct file_operations def_blk_fops = {
.aio_read = generic_file_aio_read,
.aio_write = blkdev_aio_write,
.mmap = generic_file_mmap,
.aio_read = generic_file_aio_read,
.aio_write = blkdev_aio_write,
.mmap = generic_file_mmap,
- .fsync = bl
ock
_fsync,
+ .fsync = bl
kdev
_fsync,
.unlocked_ioctl = block_ioctl,
#ifdef CONFIG_COMPAT
.compat_ioctl = compat_blkdev_ioctl,
.unlocked_ioctl = block_ioctl,
#ifdef CONFIG_COMPAT
.compat_ioctl = compat_blkdev_ioctl,