ed-off-by: Dongbo Cao
---
drivers/md/bcache/request.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/md/bcache/request.c b/drivers/md/bcache/request.c
index 13d3355a..fb3502da 100644
--- a/drivers/md/bcache/request.c
+++ b/drivers/md/bcache/request.c
@@ -398,8 +398,7 @@ stati
ed-off-by: Dongbo Cao
---
drivers/md/bcache/request.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/md/bcache/request.c b/drivers/md/bcache/request.c
index 13d3355a..fb3502da 100644
--- a/drivers/md/bcache/request.c
+++ b/drivers/md/bcache/request.c
@@ -398,8 +398,7 @@ stati
merge sysfs_writeback_running attr and sysfs_writeback_percent attr together
with other attrs of cached_dev.
Signed-off-by: Dongbo Cao
---
drivers/md/bcache/sysfs.c | 15 ++-
1 file changed, 2 insertions(+), 13 deletions(-)
diff --git a/drivers/md/bcache/sysfs.c b/drivers/md
merge sysfs_writeback_running attr and sysfs_writeback_percent attr together
with other attrs of cached_dev.
Signed-off-by: Dongbo Cao
---
drivers/md/bcache/sysfs.c | 15 ++-
1 file changed, 2 insertions(+), 13 deletions(-)
diff --git a/drivers/md/bcache/sysfs.c b/drivers/md
rebase my local code and commit it again.
Signed-off-by: Dongbo Cao
---
drivers/md/bcache/super.c | 114 +++---
1 file changed, 93 insertions(+), 21 deletions(-)
diff --git a/drivers/md/bcache/super.c b/drivers/md/bcache/super.c
index a2cc354c..03099c4c 100644
rebase my local code and commit it again.
Signed-off-by: Dongbo Cao
---
drivers/md/bcache/super.c | 114 +++---
1 file changed, 93 insertions(+), 21 deletions(-)
diff --git a/drivers/md/bcache/super.c b/drivers/md/bcache/super.c
index a2cc354c..03099c4c 100644
remove bch_cache_set_unregister because we have not registerd right now
Signed-off-by: Dongbo Cao
---
drivers/md/bcache/super.c | 102 ++
1 file changed, 82 insertions(+), 20 deletions(-)
diff --git a/drivers/md/bcache/super.c b/drivers/md/bcache/super.c
remove bch_cache_set_unregister because we have not registerd right now
Signed-off-by: Dongbo Cao
---
drivers/md/bcache/super.c | 102 ++
1 file changed, 82 insertions(+), 20 deletions(-)
diff --git a/drivers/md/bcache/super.c b/drivers/md/bcache/super.c
when the nbuckets of cache device is smaller than 1024, making cache device
will trigger BUG_ON in kernel, add a condition to avoid this.
Signed-off-by: Dongbo Cao
---
drivers/md/bcache/super.c | 10 +-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/drivers/md/bcache
when the nbuckets of cache device is smaller than 1024, making cache device
will trigger BUG_ON in kernel, add a condition to avoid this.
Signed-off-by: Dongbo Cao
---
drivers/md/bcache/super.c | 10 +-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/drivers/md/bcache
to make it clearly to debug.
Signed-off-by: Dongbo Cao
---
drivers/md/bcache/super.c | 81 +++
1 file changed, 66 insertions(+), 15 deletions(-)
diff --git a/drivers/md/bcache/super.c b/drivers/md/bcache/super.c
index fa4058e4..0c0f6d8f 100644
--- a/drivers
to make it clearly to debug.
Signed-off-by: Dongbo Cao
---
drivers/md/bcache/super.c | 81 +++
1 file changed, 66 insertions(+), 15 deletions(-)
diff --git a/drivers/md/bcache/super.c b/drivers/md/bcache/super.c
index fa4058e4..0c0f6d8f 100644
--- a/drivers
1)when the nbuckets of cache device is smaller than 1024, make cache device
will trigger BUG_ON in kernel, add a condition to avoid this.
2)split original if condition code into separate ones to make it clearly to
debug.
Signed-off-by: Dongbo Cao
---
drivers/md/bcache/super.c | 87
1)when the nbuckets of cache device is smaller than 1024, make cache device
will trigger BUG_ON in kernel, add a condition to avoid this.
2)split original if condition code into separate ones to make it clearly to
debug.
Signed-off-by: Dongbo Cao
---
drivers/md/bcache/super.c | 87
do some checks on the label's length and ending.
Signed-off-by: Dongbo Cao
---
drivers/md/bcache/sysfs.c | 9 -
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/drivers/md/bcache/sysfs.c b/drivers/md/bcache/sysfs.c
index e64c718f..cce793ef 100644
--- a/drivers/md/bcache
do some checks on the label's length and ending.
Signed-off-by: Dongbo Cao
---
drivers/md/bcache/sysfs.c | 9 -
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/drivers/md/bcache/sysfs.c b/drivers/md/bcache/sysfs.c
index e64c718f..cce793ef 100644
--- a/drivers/md/bcache
label interface will be called by bcache tools in user space.
Signed-off-by: Dongbo Cao
---
drivers/md/bcache/sysfs.c | 19 +++
1 file changed, 19 insertions(+)
diff --git a/drivers/md/bcache/sysfs.c b/drivers/md/bcache/sysfs.c
index 225b15aa..e64c718f 100644
--- a/drivers/md
label interface will be called by bcache tools in user space.
Signed-off-by: Dongbo Cao
---
drivers/md/bcache/sysfs.c | 19 +++
1 file changed, 19 insertions(+)
diff --git a/drivers/md/bcache/sysfs.c b/drivers/md/bcache/sysfs.c
index 225b15aa..e64c718f 100644
--- a/drivers/md
add some goto label to release memory in case we got wrong return value.
Signed-off-by: Dongbo Cao
---
drivers/md/bcache/super.c | 21 -
1 file changed, 16 insertions(+), 5 deletions(-)
diff --git a/drivers/md/bcache/super.c b/drivers/md/bcache/super.c
index 14c31e03
add some goto label to release memory in case we got wrong return value.
Signed-off-by: Dongbo Cao
---
drivers/md/bcache/super.c | 21 -
1 file changed, 16 insertions(+), 5 deletions(-)
diff --git a/drivers/md/bcache/super.c b/drivers/md/bcache/super.c
index 14c31e03
if register_cache get error, memory pointed by ca should be released.
and also, blkdev_put should be called I think.
Signed-off-by: Dongbo Cao
---
drivers/md/bcache/super.c | 7 +--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/drivers/md/bcache/super.c b/drivers/md/bcache
if register_cache get error, memory pointed by ca should be released.
and also, blkdev_put should be called I think.
Signed-off-by: Dongbo Cao
---
drivers/md/bcache/super.c | 7 +--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/drivers/md/bcache/super.c b/drivers/md/bcache
add undef for macro d_strtoul,d_strtoul_nonzero and d_strtoi_h
Signed-off-by: Dongbo Cao
---
drivers/md/bcache/sysfs.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/md/bcache/sysfs.c b/drivers/md/bcache/sysfs.c
index 225b15aa..ed67a290 100644
--- a/drivers/md/bcache/sysfs.c
add undef for macro d_strtoul,d_strtoul_nonzero and d_strtoi_h
Signed-off-by: Dongbo Cao
---
drivers/md/bcache/sysfs.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/md/bcache/sysfs.c b/drivers/md/bcache/sysfs.c
index 225b15aa..ed67a290 100644
--- a/drivers/md/bcache/sysfs.c
24 matches
Mail list logo