aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2008-02-06 04:39:57 -0500
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2008-02-06 13:41:19 -0500
commit20a49ff679fb1caa69c69eb0361bea488e51c9b2 (patch)
tree353602a958a040694da32596d0913a7d47a49733 /drivers/md
parent177a99b23ef9878c0cedcc7273108eba8a6e9472 (diff)
md: change a few 'int' to 'size_t' in md
As suggested by Andrew Morton. Signed-off-by: Neil Brown <neilb@suse.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/md')
-rw-r--r--drivers/md/md.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c
index 6cdd1b4faca6..f08b6e786c0a 100644
--- a/drivers/md/md.c
+++ b/drivers/md/md.c
@@ -1800,7 +1800,7 @@ static ssize_t
1800state_show(mdk_rdev_t *rdev, char *page) 1800state_show(mdk_rdev_t *rdev, char *page)
1801{ 1801{
1802 char *sep = ""; 1802 char *sep = "";
1803 int len=0; 1803 size_t len = 0;
1804 1804
1805 if (test_bit(Faulty, &rdev->flags)) { 1805 if (test_bit(Faulty, &rdev->flags)) {
1806 len+= sprintf(page+len, "%sfaulty",sep); 1806 len+= sprintf(page+len, "%sfaulty",sep);
@@ -2318,7 +2318,7 @@ level_show(mddev_t *mddev, char *page)
2318static ssize_t 2318static ssize_t
2319level_store(mddev_t *mddev, const char *buf, size_t len) 2319level_store(mddev_t *mddev, const char *buf, size_t len)
2320{ 2320{
2321 int rv = len; 2321 ssize_t rv = len;
2322 if (mddev->pers) 2322 if (mddev->pers)
2323 return -EBUSY; 2323 return -EBUSY;
2324 if (len == 0) 2324 if (len == 0)
@@ -2805,7 +2805,7 @@ metadata_store(mddev_t *mddev, const char *buf, size_t len)
2805 return len; 2805 return len;
2806 } 2806 }
2807 if (strncmp(buf, "external:", 9) == 0) { 2807 if (strncmp(buf, "external:", 9) == 0) {
2808 int namelen = len-9; 2808 size_t namelen = len-9;
2809 if (namelen >= sizeof(mddev->metadata_type)) 2809 if (namelen >= sizeof(mddev->metadata_type))
2810 namelen = sizeof(mddev->metadata_type)-1; 2810 namelen = sizeof(mddev->metadata_type)-1;
2811 strncpy(mddev->metadata_type, buf+9, namelen); 2811 strncpy(mddev->metadata_type, buf+9, namelen);