On Wed, Aug 14, 2019 at 02:18:28PM +0200, Sascha Hauer wrote: > +/** > + * reference_super - get a reference to a given superblock > + * @sb: superblock to get the reference from > + * > + * Takes a reference to a superblock. Can be used as when the superblock > + * is known and leaves it in a state as if get_super had been called. > + */ > +void reference_super(struct super_block *sb) > +{ > + spin_lock(&sb_lock); > + sb->s_count++; > + spin_unlock(&sb_lock); > + > + down_read(&sb->s_umount); > +} > +EXPORT_SYMBOL_GPL(reference_super); NAK, for a plenty of reasons 1) introduction of EXPORT_SYMBOL_GPL garbage 2) aforementioned garbage on something that doesn't need to be exported 3) *way* too easily abused - get_super() is, at least, not tempting to play with in random code. This one is, and it's too low-level to allow. ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/