[PATCH] veth: Allow a peer to be up at creation time

2014-04-24 Thread Kusanagi Kouichi
Currently, a veth peer cannot be up at creation time. # ip link add type veth peer up RTNETLINK answers: Transport endpoint is not connected Signed-off-by: Kusanagi Kouichi --- drivers/net/veth.c | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/drivers/net

[PATCH] btrfs: Return EXDEV for cross file system snapshot

2014-01-29 Thread Kusanagi Kouichi
EXDEV seems an appropriate error if an operation fails bacause it crosses file system boundaries. Signed-off-by: Kusanagi Kouichi --- fs/btrfs/ioctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c index 34772cb..0176045 100644 --- a/fs

[PATCH] trace-cmd: Fix out-of-tree build

2014-01-08 Thread Kusanagi Kouichi
make O=foo fails with following error: .../Makefile:221: features.mk: No such file or directory make[1]: *** No rule to make target `features.mk'. Stop. make: *** [sub-make] Error 2 Signed-off-by: Kusanagi Kouichi --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH] btrfs: Return EXDEV for cross file system snapshot

2014-01-08 Thread Kusanagi Kouichi
EXDEV seems an appropriate error if an operation fails bacause it crosses file system boundaries. Signed-off-by: Kusanagi Kouichi --- fs/btrfs/ioctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c index 21da576..15d35cb 100644 --- a/fs

[PATCH] macvlan: Remove an unnecessary goto

2013-03-18 Thread Kusanagi Kouichi
Use else instead. Signed-off-by: Kusanagi Kouichi --- drivers/net/macvlan.c | 27 +-- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/drivers/net/macvlan.c b/drivers/net/macvlan.c index 73abbc1..92d16ad 100644 --- a/drivers/net/macvlan.c +++ b/drivers

[PATCH] net: Fix a comment typo

2013-03-18 Thread Kusanagi Kouichi
Signed-off-by: Kusanagi Kouichi --- net/core/dev.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/core/dev.c b/net/core/dev.c index dffbef7..69f696a 100644 --- a/net/core/dev.c +++ b/net/core/dev.c @@ -3326,7 +3326,7 @@ EXPORT_SYMBOL_GPL(netdev_rx_handler_register

[PATCH] ioprio: Allow CAP_SYS_NICE to set IOPRIO_CLASS_RT

2013-01-31 Thread Kusanagi Kouichi
sched_setscheduler allows a process with CAP_SYS_NICE to set real-time policy. Let ioprio_set follow this. Signed-off-by: Kusanagi Kouichi --- fs/ioprio.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/ioprio.c b/fs/ioprio.c index e50170c..155b51e 100644 --- a/fs

[PATCH] Btrfs: Check CAP_DAC_READ_SEARCH for BTRFS_IOC_INO_PATHS

2013-01-28 Thread Kusanagi Kouichi
CAP_DAC_READ_SEARCH overrides read and search permission check on file and directory. It seems fit for BTRFS_IOC_INO_PATHS. Signed-off-by: Kusanagi Kouichi --- fs/btrfs/ioctl.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c index

[PATCH] vfs: Replace goto with do-while

2013-01-06 Thread Kusanagi Kouichi
Signed-off-by: Kusanagi Kouichi --- fs/namespace.c | 17 - 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/fs/namespace.c b/fs/namespace.c index 55605c5..467ca80 100644 --- a/fs/namespace.c +++ b/fs/namespace.c @@ -71,15 +71,14 @@ static int mnt_alloc_id(struct

[PATCH] Revert "Documentation: ABI: /sys/devices/system/cpu/cpu#/node"

2013-01-03 Thread Kusanagi Kouichi
This reverts commit cba5dd7fa535b7684cba68e17ac8be5b0083dc3d. Commit cba5dd7fa535b7684cba68e17ac8be5b0083dc3d duplicates /sys/devices/system/cpu/cpu#/node entry. Commit 657348a056eea4a27be20cf8e22c98a252597447 has already added it. Signed-off-by: Kusanagi Kouichi --- Documentation/ABI/testing