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...
By arekm on the 3rd of Jul 2009 07:26:45 AM
Download |
Raw |
Embed |
Report
*/
static int dm_blk_open(struct inode *inode, struct file *file)
{
struct mapped_device *md;
spin_lock(&_minor_lock);
md = inode->i_bdev->bd_disk->private_data;
if (!md)
goto out;
if (test_bit(DMF_FREEING, &md->flags) ||
test_bit(DMF_DELETING, &md->flags)) {
md = NULL;
goto out;
}
dm_get(md);
atomic_inc(&md->open_count);
out:
spin_unlock(&_minor_lock);
return md ? 0 : -ENXIO;
}
Submit a correction or amendment below.
Make A New Post