Subdomain Posts
None | 3 days ago
None | 4 days ago
Bash | 4 days ago
None | 7 days ago
None | 7 days ago
C++ | 10 days ago
unrealScript | 13 days ago
None | 13 days ago
None | 17 days ago
C | 18 days ago
Recent Posts
HTML | 3 sec ago
HTML | 12 sec ago
PHP | 13 sec ago
OCaml | 26 sec ago
None | 35 sec ago
HTML | 36 sec ago
HTML | 38 sec ago
XML | 1 min ago
OCaml | 2 min ago
PHP | 2 min ago
Sitereport
Find cool info about any domain on the internet?
visit sitereport
Free Subdomains
Want a pastebin.com sub-domain for your community?
learn more...
What is pastebin?
Pastebin is a website that hosts all your text & code on dedicated servers for easy sharing.
learn more...
Learn a little bit about the new Pastebin.com on our help page. hide message
By arekm on the 3rd of Jul 2009 07:26:45 AM Download | Raw | Embed | Report
  1.  */
  2. static int dm_blk_open(struct inode *inode, struct file *file)
  3. {
  4.         struct mapped_device *md;
  5.  
  6.         spin_lock(&_minor_lock);
  7.  
  8.         md = inode->i_bdev->bd_disk->private_data;
  9.         if (!md)
  10.                 goto out;
  11.  
  12.         if (test_bit(DMF_FREEING, &md->flags) ||
  13.             test_bit(DMF_DELETING, &md->flags)) {
  14.                 md = NULL;
  15.                 goto out;
  16.         }
  17.  
  18.         dm_get(md);
  19.         atomic_inc(&md->open_count);
  20.  
  21. out:
  22.         spin_unlock(&_minor_lock);
  23.  
  24.         return md ? 0 : -ENXIO;
  25. }
Submit a correction or amendment below. Make A New Post
To highlight particular lines, prefix each line with @h@
Syntax highlighting:
Post expiration:
Post exposure:
Name / Title:
Email: