[PATCH] fs/btrfs: use general inode_set_flags() instead of set_mask_bits()

2015-06-04 Thread Zhang Zhen
Use general inode_set_flags() instead of set_mask_bits() according to commit 5f16f3225b062 (ext4: atomically set inode-i_flags in ext4_set_inode_flags()). Signed-off-by: Zhang Zhen zhenzhang.zh...@huawei.com --- fs/btrfs/ioctl.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff

Fwd: [PATCH] fs/btrfs: use inode_set_flags() instead of set_mask_bits()

2015-04-20 Thread Zhang Zhen
Use inode_set_flags() instead of set_mask_bits() according to commit 5f16f3225b062 (ext4: atomically set inode-i_flags in ext4_set_inode_flags()). Signed-off-by: Zhang Zhen zhenzhang.zh...@huawei.com --- fs/btrfs/ioctl.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/fs

[PATCH] fs/btrfs: use inode_set_flags() instead of set_mask_bits()

2015-04-20 Thread Zhang Zhen
Use inode_set_flags() instead of set_mask_bits() according to commit 5f16f3225b062 (ext4: atomically set inode-i_flags in ext4_set_inode_flags()). Signed-off-by: Zhang Zhen zhenzhang.zh...@huawei.com --- fs/btrfs/ioctl.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/fs

[PATCH] btrfs: remove a FIXME in btrfs_get_acl()

2014-05-19 Thread Zhang Zhen
There is no function returns a value of -ENOENT, so the check is useless. Remove it, and the redundant braces. Signed-off-by: Zhang Zhen zhenzhang.zh...@huawei.com --- fs/btrfs/acl.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/fs/btrfs/acl.c b/fs/btrfs/acl.c index

[PATCH v2] btrfs: replace simple_strtoull() with kstrtoull()

2014-05-13 Thread Zhang Zhen
use the newer and more pleasant kstrtoull() to replace simple_strtoull(), because simple_strtoull() is marked for obsoletion. Signed-off-by: Zhang Zhen zhenzhang.zh...@huawei.com --- fs/btrfs/ioctl.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fs/btrfs/ioctl.c b/fs

[PATCH] btrfs: replace simple_strtoul() with kstrtoul()

2014-05-12 Thread Zhang Zhen
use the newer and more pleasant kstrtoul() to replace simple_strtoul(), because simple_strtoul() is marked for obsoletion. Signed-off-by: Zhang Zhen zhenzhang.zh...@huawei.com --- fs/btrfs/ioctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/btrfs/ioctl.c b/fs/btrfs

Re: [PATCH] btrfs: replace simple_strtoul() with kstrtoul()

2014-05-12 Thread Zhang Zhen
On 2014/5/12 19:28, David Taylor wrote: On Mon, 12 May 2014, Zhang Zhen wrote: use the newer and more pleasant kstrtoul() to replace simple_strtoul(), because simple_strtoul() is marked for obsoletion. [...] -devid = simple_strtoull(devstr, end, 10); +devid = kstrtoul

[PATCH] btrfs: replace simple_strtoul() with kstrtoul()

2014-05-12 Thread Zhang Zhen
use the newer and more pleasant kstrtoul() to replace simple_strtoul(), because simple_strtoul() is marked for obsoletion. Signed-off-by: Zhang Zhen zhenzhang.zh...@huawei.com --- fs/btrfs/ioctl.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fs/btrfs/ioctl.c b/fs