diff options
Diffstat (limited to 'fs/sync.c')
| -rw-r--r-- | fs/sync.c | 19 | 
1 files changed, 1 insertions, 18 deletions
diff --git a/fs/sync.c b/fs/sync.c index 905f3f6b3d8..b28d1dd10e8 100644 --- a/fs/sync.c +++ b/fs/sync.c @@ -177,7 +177,7 @@ SYSCALL_DEFINE1(syncfs, int, fd)   */  int vfs_fsync_range(struct file *file, loff_t start, loff_t end, int datasync)  { -	if (!file->f_op || !file->f_op->fsync) +	if (!file->f_op->fsync)  		return -EINVAL;  	return file->f_op->fsync(file, start, end, datasync);  } @@ -219,23 +219,6 @@ SYSCALL_DEFINE1(fdatasync, unsigned int, fd)  	return do_fsync(fd, 1);  } -/** - * generic_write_sync - perform syncing after a write if file / inode is sync - * @file:	file to which the write happened - * @pos:	offset where the write started - * @count:	length of the write - * - * This is just a simple wrapper about our general syncing function. - */ -int generic_write_sync(struct file *file, loff_t pos, loff_t count) -{ -	if (!(file->f_flags & O_DSYNC) && !IS_SYNC(file->f_mapping->host)) -		return 0; -	return vfs_fsync_range(file, pos, pos + count - 1, -			       (file->f_flags & __O_SYNC) ? 0 : 1); -} -EXPORT_SYMBOL(generic_write_sync); -  /*   * sys_sync_file_range() permits finely controlled syncing over a segment of   * a file in the range offset .. (offset+nbytes-1) inclusive.  If nbytes is  | 
