[PATCH 2/2] cpuset: correct the disoder comment of two functions

2013-07-26 Thread Zhao Hongjiang
correct the disoder comment between cpuset_css_offline() and cpuset_css_free() functions. Signed-off-by: Zhao Hongjiang --- kernel/cpuset.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/kernel/cpuset.c b/kernel/cpuset.c index 2ddd9b9..703bfd5 100644

[PATCH 1/2] cpuset: get rid of the useless forward declaration of cpuset

2013-07-26 Thread Zhao Hongjiang
get rid of the useless forward declaration of the struct cpuset cause the below define it. Signed-off-by: Zhao Hongjiang --- kernel/cpuset.c | 1 - 1 file changed, 1 deletion(-) diff --git a/kernel/cpuset.c b/kernel/cpuset.c index e565778..2ddd9b9 100644 --- a/kernel/cpuset.c +++ b/kernel

[PATCH 2/2] cpuset: correct the disoder comment of two functions

2013-07-26 Thread Zhao Hongjiang
correct the disoder comment between cpuset_css_offline() and cpuset_css_free() functions. Signed-off-by: Zhao Hongjiang zhaohongji...@huawei.com --- kernel/cpuset.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/kernel/cpuset.c b/kernel/cpuset.c index 2ddd9b9

[PATCH 1/2] cpuset: get rid of the useless forward declaration of cpuset

2013-07-26 Thread Zhao Hongjiang
get rid of the useless forward declaration of the struct cpuset cause the below define it. Signed-off-by: Zhao Hongjiang zhaohongji...@huawei.com --- kernel/cpuset.c | 1 - 1 file changed, 1 deletion(-) diff --git a/kernel/cpuset.c b/kernel/cpuset.c index e565778..2ddd9b9 100644 --- a/kernel

[PATCH] trace: using strlcpy instead of strncpy

2013-06-20 Thread Zhao Hongjiang
for NUL terminated string, need alway set '\0' in the end. Signed-off-by: Zhao Hongjiang --- include/trace/events/sock.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/include/trace/events/sock.h b/include/trace/events/sock.h index 779abb9..333d8b5 100644

[PATCH] trace_event: using strlcpy instead of strncpy

2013-06-20 Thread Zhao Hongjiang
for NUL terminated string, need alway set '\0' in the end. Signed-off-by: Zhao Hongjiang --- samples/trace_events/trace-events-sample.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/samples/trace_events/trace-events-sample.h b/samples/trace_events/trace-events

[PATCH] proc: kcore: using strlcpy instead of strncpy

2013-06-20 Thread Zhao Hongjiang
for NUL terminated string, need alway set '\0' in the end. Signed-off-by: Zhao Hongjiang --- fs/proc/kcore.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/fs/proc/kcore.c b/fs/proc/kcore.c index 0a22194..06ea155 100644 --- a/fs/proc/kcore.c +++ b/fs/proc/kcore.c

[PATCH] proc: kcore: using strlcpy instead of strncpy

2013-06-20 Thread Zhao Hongjiang
for NUL terminated string, need alway set '\0' in the end. Signed-off-by: Zhao Hongjiang zhaohongji...@huawei.com --- fs/proc/kcore.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/fs/proc/kcore.c b/fs/proc/kcore.c index 0a22194..06ea155 100644 --- a/fs/proc/kcore.c

[PATCH] trace_event: using strlcpy instead of strncpy

2013-06-20 Thread Zhao Hongjiang
for NUL terminated string, need alway set '\0' in the end. Signed-off-by: Zhao Hongjiang zhaohongji...@huawei.com --- samples/trace_events/trace-events-sample.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/samples/trace_events/trace-events-sample.h b/samples

[PATCH] trace: using strlcpy instead of strncpy

2013-06-20 Thread Zhao Hongjiang
for NUL terminated string, need alway set '\0' in the end. Signed-off-by: Zhao Hongjiang zhaohongji...@huawei.com --- include/trace/events/sock.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/include/trace/events/sock.h b/include/trace/events/sock.h index 779abb9

[PATCH] nfsd: get rid of the unused functions in vfs

2013-05-03 Thread Zhao Hongjiang
The fh_lock_parent(), nfsd_truncate(), nfsd_notify_change() and nfsd_sync_dir() fuctions were never implement and used, just remove them. Signed-off-by: Zhao Hongjiang --- fs/nfsd/vfs.h |5 - 1 files changed, 0 insertions(+), 5 deletions(-) diff --git a/fs/nfsd/vfs.h b/fs/nfsd/vfs.h

[PATCH] nfsd: get rid of the unused functions in vfs

2013-05-03 Thread Zhao Hongjiang
The fh_lock_parent(), nfsd_truncate(), nfsd_notify_change() and nfsd_sync_dir() fuctions were never implement and used, just remove them. Signed-off-by: Zhao Hongjiang zhaohongji...@huawei.com --- fs/nfsd/vfs.h |5 - 1 files changed, 0 insertions(+), 5 deletions(-) diff --git a/fs/nfsd

[PATCH] exofs: don't increase urilen if krealloc() fails

2013-04-28 Thread Zhao Hongjiang
Without the patch, edp->urilen is increased before krealloc(). If krealloc() fails, edp->urilen is too high. Fix that by only updating edp->urilen if krealloc() is successful. Signed-off-by: Zhao Hongjiang --- fs/exofs/sys.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions

[PATCH] exofs: don't increase urilen if krealloc() fails

2013-04-28 Thread Zhao Hongjiang
Without the patch, edp-urilen is increased before krealloc(). If krealloc() fails, edp-urilen is too high. Fix that by only updating edp-urilen if krealloc() is successful. Signed-off-by: Zhao Hongjiang zhaohongji...@huawei.com --- fs/exofs/sys.c |4 ++-- 1 files changed, 2 insertions

[PATCH] aio: dprintks in aio_read_evt were referencing aio_ring after kunmap_atomic

2013-04-25 Thread Zhao Hongjiang
Signed-off-by: Zhao Hongjiang Cc: sta...@vger.kernel.org --- linux-next use pr_debug instead of dprintk, and fix the issue. --- fs/aio.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/fs/aio.c b/fs/aio.c index 3f941f2..1dc8786 100644 --- a/fs/aio.c +++ b/fs/aio.c

[PATCH] aio: dprintks in aio_read_evt were referencing aio_ring after kunmap_atomic

2013-04-25 Thread Zhao Hongjiang
Signed-off-by: Zhao Hongjiang zhaohongji...@huawei.com Cc: sta...@vger.kernel.org --- linux-next use pr_debug instead of dprintk, and fix the issue. --- fs/aio.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/fs/aio.c b/fs/aio.c index 3f941f2..1dc8786 100644 --- a/fs

[PATCH] ext4: get rid of the duplicate code on ext4_fill_super

2012-10-29 Thread Zhao Hongjiang
From: Zhao Hongjiang Clean the duplicate code on ext4_fill_super cause the bellow also have it. Signed-off-by: Zhao Hongjiang --- fs/ext4/super.c |3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/fs/ext4/super.c b/fs/ext4/super.c index 80928f7..d21b985 100644 --- a/fs

[PATCH] ext3: get rid of the duplicate code on ext3_fill_super

2012-10-29 Thread Zhao Hongjiang
From: Zhao Hongjiang Clean the duplicate code on ext3_fill_super cause the bellow also have it. Signed-off-by: Zhao Hongjiang --- fs/ext3/super.c |3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/fs/ext3/super.c b/fs/ext3/super.c index 5366393..6e50223 100644 --- a/fs

[PATCH] ext3: get rid of the duplicate code on ext3_fill_super

2012-10-29 Thread Zhao Hongjiang
From: Zhao Hongjiang zhaohongji...@huawei.com Clean the duplicate code on ext3_fill_super cause the bellow also have it. Signed-off-by: Zhao Hongjiang zhaohongji...@huawei.com --- fs/ext3/super.c |3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/fs/ext3/super.c b/fs

[PATCH] ext4: get rid of the duplicate code on ext4_fill_super

2012-10-29 Thread Zhao Hongjiang
From: Zhao Hongjiang zhaohongji...@huawei.com Clean the duplicate code on ext4_fill_super cause the bellow also have it. Signed-off-by: Zhao Hongjiang zhaohongji...@huawei.com --- fs/ext4/super.c |3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/fs/ext4/super.c b/fs

[PATCH] ext3: fix return values on parse_options() failure

2012-10-08 Thread Zhao Hongjiang
From: Zhao Hongjiang parse_options() in ext3 should return 0 when parse the mount options fails. Signed-off-by: Zhao Hongjiang --- fs/ext3/super.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/ext3/super.c b/fs/ext3/super.c index 17ae5c8..ebf8312 100644

[PATCH] ext2: fix return values on parse_options() failure

2012-10-08 Thread Zhao Hongjiang
From: Zhao Hongjiang parse_options() in ext2 should return 0 when parse the mount options fails. Signed-off-by: Zhao Hongjiang --- fs/ext2/super.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/ext2/super.c b/fs/ext2/super.c index 6c205d0..fa04d02 100644

[PATCH] ext2: fix return values on parse_options() failure

2012-10-08 Thread Zhao Hongjiang
From: Zhao Hongjiang zhaohongji...@huawei.com parse_options() in ext2 should return 0 when parse the mount options fails. Signed-off-by: Zhao Hongjiang zhaohongji...@huawei.com --- fs/ext2/super.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/ext2/super.c b/fs

[PATCH] ext3: fix return values on parse_options() failure

2012-10-08 Thread Zhao Hongjiang
From: Zhao Hongjiang zhaohongji...@huawei.com parse_options() in ext3 should return 0 when parse the mount options fails. Signed-off-by: Zhao Hongjiang zhaohongji...@huawei.com --- fs/ext3/super.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/ext3/super.c b/fs

[PATCH] block: change return values from -EACCES to -EPERM

2012-09-22 Thread Zhao Hongjiang
From: Zhao Hongjiang Change return value from -EACCES to -EPERM when the permission check fails. Signed-off-by: Zhao Hongjiang --- This patch is based on linux-next tree http://git.kernel.org/?p=linux/kernel/git/next/linux-next.git --- block/compat_ioctl.c |2 +- block/ioctl.c

[PATCH] block: change return values from -EACCES to -EPERM

2012-09-22 Thread Zhao Hongjiang
From: Zhao Hongjiang zhaohongji...@huawei.com Change return value from -EACCES to -EPERM when the permission check fails. Signed-off-by: Zhao Hongjiang zhaohongji...@huawei.com --- This patch is based on linux-next tree http://git.kernel.org/?p=linux/kernel/git/next/linux-next.git --- block