projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
block: make blkdev_get/put() handle exclusive access
[linux-2.6-block.git]
/
fs
/
nilfs2
/
super.c
diff --git
a/fs/nilfs2/super.c
b/fs/nilfs2/super.c
index f804d41ec9d3b2e253972beed4ecda1fc2daf2b9..756a6798d7c81cb5cf6a9157e3f13cea83a2ea86 100644
(file)
--- a/
fs/nilfs2/super.c
+++ b/
fs/nilfs2/super.c
@@
-1233,7
+1233,7
@@
nilfs_mount(struct file_system_type *fs_type, int flags,
}
if (!s_new)
-
close_bdev_exclusive(sd.bdev, mode
);
+
blkdev_put(sd.bdev, mode | FMODE_EXCL
);
return root_dentry;
@@
-1242,7
+1242,7
@@
nilfs_mount(struct file_system_type *fs_type, int flags,
failed:
if (!s_new)
-
close_bdev_exclusive(sd.bdev, mode
);
+
blkdev_put(sd.bdev, mode | FMODE_EXCL
);
return ERR_PTR(err);
}