* Are lock_super() and unlock_super() deprecated?
@ 2012-06-17 18:05 Dan Luedtke
2012-06-17 18:20 ` Christoph Hellwig
0 siblings, 1 reply; 2+ messages in thread
From: Dan Luedtke @ 2012-06-17 18:05 UTC (permalink / raw)
To: linux-fsdevel
Hello everyone,
short question: What am I supposed to use instead of lock_super() and
unlock_super() in newly written filesystem drivers?
fs/super.c:
> 352 /*
> 353 * Superblock locking. We really ought to get rid of these two.
> 354 */
> 355 void lock_super(struct super_block * sb)
> 356 {
> 357 mutex_lock(&sb->s_lock);
> 358 }
> 359
> 360 void unlock_super(struct super_block * sb)
> 361 {
> 362 mutex_unlock(&sb->s_lock);
> 363 }
> 364
> 365 EXPORT_SYMBOL(lock_super);
> 366 EXPORT_SYMBOL(unlock_super);
Regards,
Dan
--
Dan Luedtke
http://www.danrl.de
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-06-17 18:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-17 18:05 Are lock_super() and unlock_super() deprecated? Dan Luedtke
2012-06-17 18:20 ` Christoph Hellwig
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).