]> git.baikalelectronics.ru Git - kernel.git/commit
kernfs: Add noop_fsync to supported kernfs_file_fops
authorTony Luck <tony.luck@intel.com>
Fri, 14 Oct 2016 17:56:42 +0000 (10:56 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Oct 2016 15:47:11 +0000 (17:47 +0200)
commitebc5fbd0971b448340c73fda94e4b43bc6bfaf66
tree4dd2519edf64288329c6f00b3c20f7dca9fa0593
parentd3d68218da580b6108d3a76f1c034afe4931b1a3
kernfs: Add noop_fsync to supported kernfs_file_fops

If you edit a kernfs backed file with vi(1), you see an ugly error
message when you write the file because vi tries to fsync(2) the
file after writing, which fails.

We have noop_fsync() for this, use it.

Signed-off-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/kernfs/file.c