projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs-2.6
[firefly-linux-kernel-4.4.55.git]
/
drivers
/
md
/
dm-snap.c
diff --git
a/drivers/md/dm-snap.c
b/drivers/md/dm-snap.c
index fdde53cd12b7ef4f2bd910939bd5d08f49597829..a2d330942cb29f824c029973ae12a98a2d39efec 100644
(file)
--- a/
drivers/md/dm-snap.c
+++ b/
drivers/md/dm-snap.c
@@
-1080,7
+1080,7
@@
static int snapshot_ctr(struct dm_target *ti, unsigned int argc, char **argv)
argv++;
argc--;
- r = dm_get_device(ti, cow_path,
FMODE_READ | FMODE_WRITE
, &s->cow);
+ r = dm_get_device(ti, cow_path,
dm_table_get_mode(ti->table)
, &s->cow);
if (r) {
ti->error = "Cannot get COW device";
goto bad_cow;