Re: [PATCH V2 1/2] FS: Add generic data flush to fsync

2014-04-28 Thread hch
> + 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

[PATCH V2 1/2] FS: Add generic data flush to fsync

2014-04-25 Thread Fabian Frederick
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