On Mon, Aug 12, 2019 at 12:19:13PM +0300, Nikolay Borisov wrote:
> > +static struct btrfs_feature_attr btrfs_attr_features_checksums_name = {
> > +   .kobj_attr = __INIT_KOBJ_ATTR(checksums, S_IRUGO,
> > +                                 btrfs_checksums_show,
> > +                                 btrfs_checksums_store),
> 
> Since we won't ever support writing to this sysfs just kill
> btrfs_checksums_store and simply pass NULL as the last argument to
> INIT_KOBJ_ATTR.
> 

Yup will do.

-- 
Johannes Thumshirn                            SUSE Labs Filesystems
jthumsh...@suse.de                                +49 911 74053 689
SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: Felix Imendörffer, Mary Higgins, Sri Rasiah
HRB 21284 (AG Nürnberg)
Key fingerprint = EC38 9CAB C2C4 F25D 8600 D0D0 0393 969D 2D76 0850

Reply via email to