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
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
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
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
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
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
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
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