diff --git a/fs/sysfs/file.c b/fs/sysfs/file.c index cd5bb0f9fee6..a63130d18680 100644 --- a/fs/sysfs/file.c +++ b/fs/sysfs/file.c @@ -228,10 +228,12 @@ static const struct kernfs_ops sysfs_file_kfops_ro = { }; static const struct kernfs_ops sysfs_file_kfops_wo = { + .atomic_write_len = PAGE_SIZE, .write = sysfs_kf_write, }; static const struct kernfs_ops sysfs_file_kfops_rw = { + .atomic_write_len = PAGE_SIZE, .seq_show = sysfs_kf_seq_show, .write = sysfs_kf_write, };