> + if (flush == true) {
> + err = blkdev_issue_flush(inode->i_sb->s_bdev, GFP_KERNEL,
> + NULL);
> + if (ret == 0)
> + ret = err;
> + }
> +
> out:
> mutex_unlock(&inode->i_mutex);
There is no need to h
This patch issues a flush in generic_file_fsync.
(Modern filesystems already do it)
-Behaviour can be reversed using /sys/devices/.../cache_type
-Filesystems can also call __generic_file_fsync with bool flush false
Suggested-by: Jan Kara
Suggested-by: Christoph Hellwig
Cc: Jan Kara
Cc: Christo
2 matches
Mail list logo