X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=fs%2Fsuper.c;h=5c4c94d5495e42588c9aef5a9fe4271d54f1da24;hb=e620c4940002348417e8d317d65bc7b152646493;hp=5a4fe8be462ad998d0f32cdf270f710d210d6326;hpb=cf51624999e56c88154b5f7d451a265db6aabff7;p=linux-2.6 diff --git a/fs/super.c b/fs/super.c index 5a4fe8be46..5c4c94d549 100644 --- a/fs/super.c +++ b/fs/super.c @@ -49,6 +49,7 @@ DEFINE_SPINLOCK(sb_lock); /** * alloc_super - create new superblock + * @type: filesystem type superblock should belong to * * Allocates and initializes a new &struct super_block. alloc_super() * returns a pointer new superblock or %NULL if allocation had failed. @@ -72,6 +73,7 @@ static struct super_block *alloc_super(struct file_system_type *type) INIT_LIST_HEAD(&s->s_inodes); init_rwsem(&s->s_umount); mutex_init(&s->s_lock); + lockdep_set_class(&s->s_umount, &type->s_umount_key); /* * The locking rules for s_lock are up to the * filesystem. For example ext3fs has different