Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2a9becdd authored by Tony Luck's avatar Tony Luck Committed by Greg Kroah-Hartman
Browse files

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: default avatarTony Luck <tony.luck@intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 07d9a380
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -911,6 +911,7 @@ const struct file_operations kernfs_file_fops = {
	.open		= kernfs_fop_open,
	.open		= kernfs_fop_open,
	.release	= kernfs_fop_release,
	.release	= kernfs_fop_release,
	.poll		= kernfs_fop_poll,
	.poll		= kernfs_fop_poll,
	.fsync		= noop_fsync,
};
};


/**
/**