* [PATCH 1/9] xfs: xfs_dir_fsync() returns positive errno
2014-05-13 8:56 [PATCH 0/9] xfs: error sign fixes for 3.15-rc6 Dave Chinner
@ 2014-05-13 8:56 ` Dave Chinner
2014-05-13 12:46 ` Jeff Liu
2014-05-13 8:56 ` [PATCH 2/9] xfs: fix incorrect error sign in xfs_file_aio_read Dave Chinner
` (8 subsequent siblings)
9 siblings, 1 reply; 21+ messages in thread
From: Dave Chinner @ 2014-05-13 8:56 UTC (permalink / raw)
To: xfs
From: Dave Chinner <dchinner@redhat.com>
And it should be negative.
Signed-off-by: Dave Chinner <dchinner@redhat.com>
---
fs/xfs/xfs_file.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/xfs/xfs_file.c b/fs/xfs/xfs_file.c
index 951a232..f499e47 100644
--- a/fs/xfs/xfs_file.c
+++ b/fs/xfs/xfs_file.c
@@ -155,7 +155,7 @@ xfs_dir_fsync(
if (!lsn)
return 0;
- return _xfs_log_force_lsn(mp, lsn, XFS_LOG_SYNC, NULL);
+ return -_xfs_log_force_lsn(mp, lsn, XFS_LOG_SYNC, NULL);
}
STATIC int
--
1.9.0
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply related [flat|nested] 21+ messages in thread* Re: [PATCH 1/9] xfs: xfs_dir_fsync() returns positive errno
2014-05-13 8:56 ` [PATCH 1/9] xfs: xfs_dir_fsync() returns positive errno Dave Chinner
@ 2014-05-13 12:46 ` Jeff Liu
0 siblings, 0 replies; 21+ messages in thread
From: Jeff Liu @ 2014-05-13 12:46 UTC (permalink / raw)
To: Dave Chinner, xfs
On 05/13 2014 16:56 PM, Dave Chinner wrote:
> From: Dave Chinner <dchinner@redhat.com>
>
> And it should be negative.
>
> Signed-off-by: Dave Chinner <dchinner@redhat.com>
> ---
> fs/xfs/xfs_file.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/fs/xfs/xfs_file.c b/fs/xfs/xfs_file.c
> index 951a232..f499e47 100644
> --- a/fs/xfs/xfs_file.c
> +++ b/fs/xfs/xfs_file.c
> @@ -155,7 +155,7 @@ xfs_dir_fsync(
>
> if (!lsn)
> return 0;
> - return _xfs_log_force_lsn(mp, lsn, XFS_LOG_SYNC, NULL);
> + return -_xfs_log_force_lsn(mp, lsn, XFS_LOG_SYNC, NULL);
> }
>
> STATIC int
>
Reviewed-by: Jie Liu <jeff.liu@oracle.com>
Cheers,
-Jeff
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 21+ messages in thread
* [PATCH 2/9] xfs: fix incorrect error sign in xfs_file_aio_read
2014-05-13 8:56 [PATCH 0/9] xfs: error sign fixes for 3.15-rc6 Dave Chinner
2014-05-13 8:56 ` [PATCH 1/9] xfs: xfs_dir_fsync() returns positive errno Dave Chinner
@ 2014-05-13 8:56 ` Dave Chinner
2014-05-13 12:46 ` Jeff Liu
2014-05-13 8:56 ` [PATCH 3/9] xfs: xfs_commit_metadata returns wrong errno Dave Chinner
` (7 subsequent siblings)
9 siblings, 1 reply; 21+ messages in thread
From: Dave Chinner @ 2014-05-13 8:56 UTC (permalink / raw)
To: xfs
From: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <dchinner@redhat.com>
---
fs/xfs/xfs_file.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/xfs/xfs_file.c b/fs/xfs/xfs_file.c
index f499e47..37f98c6 100644
--- a/fs/xfs/xfs_file.c
+++ b/fs/xfs/xfs_file.c
@@ -295,7 +295,7 @@ xfs_file_aio_read(
xfs_rw_ilock(ip, XFS_IOLOCK_EXCL);
if (inode->i_mapping->nrpages) {
- ret = -filemap_write_and_wait_range(
+ ret = filemap_write_and_wait_range(
VFS_I(ip)->i_mapping,
pos, -1);
if (ret) {
--
1.9.0
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply related [flat|nested] 21+ messages in thread* Re: [PATCH 2/9] xfs: fix incorrect error sign in xfs_file_aio_read
2014-05-13 8:56 ` [PATCH 2/9] xfs: fix incorrect error sign in xfs_file_aio_read Dave Chinner
@ 2014-05-13 12:46 ` Jeff Liu
0 siblings, 0 replies; 21+ messages in thread
From: Jeff Liu @ 2014-05-13 12:46 UTC (permalink / raw)
To: Dave Chinner, xfs
On 05/13 2014 16:56 PM, Dave Chinner wrote:
> From: Dave Chinner <dchinner@redhat.com>
>
> Signed-off-by: Dave Chinner <dchinner@redhat.com>
> ---
> fs/xfs/xfs_file.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/fs/xfs/xfs_file.c b/fs/xfs/xfs_file.c
> index f499e47..37f98c6 100644
> --- a/fs/xfs/xfs_file.c
> +++ b/fs/xfs/xfs_file.c
> @@ -295,7 +295,7 @@ xfs_file_aio_read(
> xfs_rw_ilock(ip, XFS_IOLOCK_EXCL);
>
> if (inode->i_mapping->nrpages) {
> - ret = -filemap_write_and_wait_range(
> + ret = filemap_write_and_wait_range(
> VFS_I(ip)->i_mapping,
> pos, -1);
> if (ret) {
>
Reviewed-by: Jie Liu <jeff.liu@oracle.com>
Cheers,
-Jeff
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 21+ messages in thread
* [PATCH 3/9] xfs: xfs_commit_metadata returns wrong errno
2014-05-13 8:56 [PATCH 0/9] xfs: error sign fixes for 3.15-rc6 Dave Chinner
2014-05-13 8:56 ` [PATCH 1/9] xfs: xfs_dir_fsync() returns positive errno Dave Chinner
2014-05-13 8:56 ` [PATCH 2/9] xfs: fix incorrect error sign in xfs_file_aio_read Dave Chinner
@ 2014-05-13 8:56 ` Dave Chinner
2014-05-13 12:48 ` Jeff Liu
2014-05-13 8:56 ` [PATCH 4/9] xfs: correct error sign on COLLAPSE_RANGE errors Dave Chinner
` (6 subsequent siblings)
9 siblings, 1 reply; 21+ messages in thread
From: Dave Chinner @ 2014-05-13 8:56 UTC (permalink / raw)
To: xfs
From: Dave Chinner <dchinner@redhat.com>
Invert it.
Signed-off-by: Dave Chinner <dchinner@redhat.com>
---
fs/xfs/xfs_export.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/xfs/xfs_export.c b/fs/xfs/xfs_export.c
index 1399e18..753e467 100644
--- a/fs/xfs/xfs_export.c
+++ b/fs/xfs/xfs_export.c
@@ -237,7 +237,7 @@ xfs_fs_nfs_commit_metadata(
if (!lsn)
return 0;
- return _xfs_log_force_lsn(mp, lsn, XFS_LOG_SYNC, NULL);
+ return -_xfs_log_force_lsn(mp, lsn, XFS_LOG_SYNC, NULL);
}
const struct export_operations xfs_export_operations = {
--
1.9.0
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply related [flat|nested] 21+ messages in thread* Re: [PATCH 3/9] xfs: xfs_commit_metadata returns wrong errno
2014-05-13 8:56 ` [PATCH 3/9] xfs: xfs_commit_metadata returns wrong errno Dave Chinner
@ 2014-05-13 12:48 ` Jeff Liu
0 siblings, 0 replies; 21+ messages in thread
From: Jeff Liu @ 2014-05-13 12:48 UTC (permalink / raw)
To: Dave Chinner, xfs
On 05/13 2014 16:56 PM, Dave Chinner wrote:
> From: Dave Chinner <dchinner@redhat.com>
>
> Invert it.
>
> Signed-off-by: Dave Chinner <dchinner@redhat.com>
> ---
> fs/xfs/xfs_export.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/fs/xfs/xfs_export.c b/fs/xfs/xfs_export.c
> index 1399e18..753e467 100644
> --- a/fs/xfs/xfs_export.c
> +++ b/fs/xfs/xfs_export.c
> @@ -237,7 +237,7 @@ xfs_fs_nfs_commit_metadata(
>
> if (!lsn)
> return 0;
> - return _xfs_log_force_lsn(mp, lsn, XFS_LOG_SYNC, NULL);
> + return -_xfs_log_force_lsn(mp, lsn, XFS_LOG_SYNC, NULL);
> }
>
> const struct export_operations xfs_export_operations = {
>
Reviewed-by: Jie Liu <jeff.liu@oracle.com>
Cheers,
-Jeff
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 21+ messages in thread
* [PATCH 4/9] xfs: correct error sign on COLLAPSE_RANGE errors
2014-05-13 8:56 [PATCH 0/9] xfs: error sign fixes for 3.15-rc6 Dave Chinner
` (2 preceding siblings ...)
2014-05-13 8:56 ` [PATCH 3/9] xfs: xfs_commit_metadata returns wrong errno Dave Chinner
@ 2014-05-13 8:56 ` Dave Chinner
2014-05-13 12:49 ` Jeff Liu
2014-05-13 8:56 ` [PATCH 5/9] xfs: fix wrong errno from xfs_initxattrs Dave Chinner
` (5 subsequent siblings)
9 siblings, 1 reply; 21+ messages in thread
From: Dave Chinner @ 2014-05-13 8:56 UTC (permalink / raw)
To: xfs
From: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <dchinner@redhat.com>
---
fs/xfs/xfs_file.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/fs/xfs/xfs_file.c b/fs/xfs/xfs_file.c
index 37f98c6..830c1c9 100644
--- a/fs/xfs/xfs_file.c
+++ b/fs/xfs/xfs_file.c
@@ -837,7 +837,7 @@ xfs_file_fallocate(
unsigned blksize_mask = (1 << inode->i_blkbits) - 1;
if (offset & blksize_mask || len & blksize_mask) {
- error = -EINVAL;
+ error = EINVAL;
goto out_unlock;
}
@@ -846,7 +846,7 @@ xfs_file_fallocate(
* in which case it is effectively a truncate operation
*/
if (offset + len >= i_size_read(inode)) {
- error = -EINVAL;
+ error = EINVAL;
goto out_unlock;
}
--
1.9.0
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply related [flat|nested] 21+ messages in thread* Re: [PATCH 4/9] xfs: correct error sign on COLLAPSE_RANGE errors
2014-05-13 8:56 ` [PATCH 4/9] xfs: correct error sign on COLLAPSE_RANGE errors Dave Chinner
@ 2014-05-13 12:49 ` Jeff Liu
0 siblings, 0 replies; 21+ messages in thread
From: Jeff Liu @ 2014-05-13 12:49 UTC (permalink / raw)
To: Dave Chinner, xfs
On 05/13 2014 16:56 PM, Dave Chinner wrote:
> From: Dave Chinner <dchinner@redhat.com>
>
> Signed-off-by: Dave Chinner <dchinner@redhat.com>
> ---
> fs/xfs/xfs_file.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/fs/xfs/xfs_file.c b/fs/xfs/xfs_file.c
> index 37f98c6..830c1c9 100644
> --- a/fs/xfs/xfs_file.c
> +++ b/fs/xfs/xfs_file.c
> @@ -837,7 +837,7 @@ xfs_file_fallocate(
> unsigned blksize_mask = (1 << inode->i_blkbits) - 1;
>
> if (offset & blksize_mask || len & blksize_mask) {
> - error = -EINVAL;
> + error = EINVAL;
> goto out_unlock;
> }
>
> @@ -846,7 +846,7 @@ xfs_file_fallocate(
> * in which case it is effectively a truncate operation
> */
> if (offset + len >= i_size_read(inode)) {
> - error = -EINVAL;
> + error = EINVAL;
> goto out_unlock;
> }
>
>
Reviewed-by: Jie Liu <jeff.liu@oracle.com>
Cheers,
-Jeff
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 21+ messages in thread
* [PATCH 5/9] xfs: fix wrong errno from xfs_initxattrs
2014-05-13 8:56 [PATCH 0/9] xfs: error sign fixes for 3.15-rc6 Dave Chinner
` (3 preceding siblings ...)
2014-05-13 8:56 ` [PATCH 4/9] xfs: correct error sign on COLLAPSE_RANGE errors Dave Chinner
@ 2014-05-13 8:56 ` Dave Chinner
2014-05-13 12:51 ` Jeff Liu
2014-05-13 8:56 ` [PATCH 6/9] xfs: fix wrong err sign on xfs_set_acl() Dave Chinner
` (4 subsequent siblings)
9 siblings, 1 reply; 21+ messages in thread
From: Dave Chinner @ 2014-05-13 8:56 UTC (permalink / raw)
To: xfs
From: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <dchinner@redhat.com>
---
fs/xfs/xfs_iops.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/fs/xfs/xfs_iops.c b/fs/xfs/xfs_iops.c
index 301ecbf..adfb18e 100644
--- a/fs/xfs/xfs_iops.c
+++ b/fs/xfs/xfs_iops.c
@@ -72,8 +72,8 @@ xfs_initxattrs(
int error = 0;
for (xattr = xattr_array; xattr->name != NULL; xattr++) {
- error = xfs_attr_set(ip, xattr->name, xattr->value,
- xattr->value_len, ATTR_SECURE);
+ error = -xfs_attr_set(ip, xattr->name, xattr->value,
+ xattr->value_len, ATTR_SECURE);
if (error < 0)
break;
}
@@ -93,8 +93,8 @@ xfs_init_security(
struct inode *dir,
const struct qstr *qstr)
{
- return security_inode_init_security(inode, dir, qstr,
- &xfs_initxattrs, NULL);
+ return -security_inode_init_security(inode, dir, qstr,
+ &xfs_initxattrs, NULL);
}
static void
--
1.9.0
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply related [flat|nested] 21+ messages in thread* Re: [PATCH 5/9] xfs: fix wrong errno from xfs_initxattrs
2014-05-13 8:56 ` [PATCH 5/9] xfs: fix wrong errno from xfs_initxattrs Dave Chinner
@ 2014-05-13 12:51 ` Jeff Liu
0 siblings, 0 replies; 21+ messages in thread
From: Jeff Liu @ 2014-05-13 12:51 UTC (permalink / raw)
To: Dave Chinner, xfs
On 05/13 2014 16:56 PM, Dave Chinner wrote:
> From: Dave Chinner <dchinner@redhat.com>
>
> Signed-off-by: Dave Chinner <dchinner@redhat.com>
> ---
> fs/xfs/xfs_iops.c | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/fs/xfs/xfs_iops.c b/fs/xfs/xfs_iops.c
> index 301ecbf..adfb18e 100644
> --- a/fs/xfs/xfs_iops.c
> +++ b/fs/xfs/xfs_iops.c
> @@ -72,8 +72,8 @@ xfs_initxattrs(
> int error = 0;
>
> for (xattr = xattr_array; xattr->name != NULL; xattr++) {
> - error = xfs_attr_set(ip, xattr->name, xattr->value,
> - xattr->value_len, ATTR_SECURE);
> + error = -xfs_attr_set(ip, xattr->name, xattr->value,
> + xattr->value_len, ATTR_SECURE);
> if (error < 0)
> break;
> }
> @@ -93,8 +93,8 @@ xfs_init_security(
> struct inode *dir,
> const struct qstr *qstr)
> {
> - return security_inode_init_security(inode, dir, qstr,
> - &xfs_initxattrs, NULL);
> + return -security_inode_init_security(inode, dir, qstr,
> + &xfs_initxattrs, NULL);
> }
>
> static void
>
Reviewed-by: Jie Liu <jeff.liu@oracle.com>
Cheers,
-Jeff
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 21+ messages in thread
* [PATCH 6/9] xfs: fix wrong err sign on xfs_set_acl()
2014-05-13 8:56 [PATCH 0/9] xfs: error sign fixes for 3.15-rc6 Dave Chinner
` (4 preceding siblings ...)
2014-05-13 8:56 ` [PATCH 5/9] xfs: fix wrong errno from xfs_initxattrs Dave Chinner
@ 2014-05-13 8:56 ` Dave Chinner
2014-05-13 12:51 ` Jeff Liu
2014-05-13 8:56 ` [PATCH 7/9] xfs: negate mount workqueue init error value Dave Chinner
` (3 subsequent siblings)
9 siblings, 1 reply; 21+ messages in thread
From: Dave Chinner @ 2014-05-13 8:56 UTC (permalink / raw)
To: xfs
From: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <dchinner@redhat.com>
---
fs/xfs/xfs_iops.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/fs/xfs/xfs_iops.c b/fs/xfs/xfs_iops.c
index adfb18e..36d6303 100644
--- a/fs/xfs/xfs_iops.c
+++ b/fs/xfs/xfs_iops.c
@@ -173,12 +173,12 @@ xfs_generic_create(
#ifdef CONFIG_XFS_POSIX_ACL
if (default_acl) {
- error = xfs_set_acl(inode, default_acl, ACL_TYPE_DEFAULT);
+ error = -xfs_set_acl(inode, default_acl, ACL_TYPE_DEFAULT);
if (error)
goto out_cleanup_inode;
}
if (acl) {
- error = xfs_set_acl(inode, acl, ACL_TYPE_ACCESS);
+ error = -xfs_set_acl(inode, acl, ACL_TYPE_ACCESS);
if (error)
goto out_cleanup_inode;
}
--
1.9.0
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply related [flat|nested] 21+ messages in thread* Re: [PATCH 6/9] xfs: fix wrong err sign on xfs_set_acl()
2014-05-13 8:56 ` [PATCH 6/9] xfs: fix wrong err sign on xfs_set_acl() Dave Chinner
@ 2014-05-13 12:51 ` Jeff Liu
0 siblings, 0 replies; 21+ messages in thread
From: Jeff Liu @ 2014-05-13 12:51 UTC (permalink / raw)
To: Dave Chinner, xfs
On 05/13 2014 16:56 PM, Dave Chinner wrote:
> From: Dave Chinner <dchinner@redhat.com>
>
> Signed-off-by: Dave Chinner <dchinner@redhat.com>
> ---
> fs/xfs/xfs_iops.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/fs/xfs/xfs_iops.c b/fs/xfs/xfs_iops.c
> index adfb18e..36d6303 100644
> --- a/fs/xfs/xfs_iops.c
> +++ b/fs/xfs/xfs_iops.c
> @@ -173,12 +173,12 @@ xfs_generic_create(
>
> #ifdef CONFIG_XFS_POSIX_ACL
> if (default_acl) {
> - error = xfs_set_acl(inode, default_acl, ACL_TYPE_DEFAULT);
> + error = -xfs_set_acl(inode, default_acl, ACL_TYPE_DEFAULT);
> if (error)
> goto out_cleanup_inode;
> }
> if (acl) {
> - error = xfs_set_acl(inode, acl, ACL_TYPE_ACCESS);
> + error = -xfs_set_acl(inode, acl, ACL_TYPE_ACCESS);
> if (error)
> goto out_cleanup_inode;
> }
>
Reviewed-by: Jie Liu <jeff.liu@oracle.com>
Cheers,
-Jeff
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 21+ messages in thread
* [PATCH 7/9] xfs: negate mount workqueue init error value
2014-05-13 8:56 [PATCH 0/9] xfs: error sign fixes for 3.15-rc6 Dave Chinner
` (5 preceding siblings ...)
2014-05-13 8:56 ` [PATCH 6/9] xfs: fix wrong err sign on xfs_set_acl() Dave Chinner
@ 2014-05-13 8:56 ` Dave Chinner
2014-05-13 12:56 ` Jeff Liu
2014-05-13 8:56 ` [PATCH 8/9] xfs: negate xfs_icsb_init_counters " Dave Chinner
` (2 subsequent siblings)
9 siblings, 1 reply; 21+ messages in thread
From: Dave Chinner @ 2014-05-13 8:56 UTC (permalink / raw)
To: xfs
From: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <dchinner@redhat.com>
---
fs/xfs/xfs_super.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/xfs/xfs_super.c b/fs/xfs/xfs_super.c
index 2053767..e1597f2 100644
--- a/fs/xfs/xfs_super.c
+++ b/fs/xfs/xfs_super.c
@@ -1433,7 +1433,7 @@ xfs_fs_fill_super(
if (error)
goto out_free_fsname;
- error = xfs_init_mount_workqueues(mp);
+ error = -xfs_init_mount_workqueues(mp);
if (error)
goto out_close_devices;
--
1.9.0
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply related [flat|nested] 21+ messages in thread* Re: [PATCH 7/9] xfs: negate mount workqueue init error value
2014-05-13 8:56 ` [PATCH 7/9] xfs: negate mount workqueue init error value Dave Chinner
@ 2014-05-13 12:56 ` Jeff Liu
0 siblings, 0 replies; 21+ messages in thread
From: Jeff Liu @ 2014-05-13 12:56 UTC (permalink / raw)
To: Dave Chinner, xfs
On 05/13 2014 16:56 PM, Dave Chinner wrote:
> From: Dave Chinner <dchinner@redhat.com>
>
> Signed-off-by: Dave Chinner <dchinner@redhat.com>
> ---
> fs/xfs/xfs_super.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/fs/xfs/xfs_super.c b/fs/xfs/xfs_super.c
> index 2053767..e1597f2 100644
> --- a/fs/xfs/xfs_super.c
> +++ b/fs/xfs/xfs_super.c
> @@ -1433,7 +1433,7 @@ xfs_fs_fill_super(
> if (error)
> goto out_free_fsname;
>
> - error = xfs_init_mount_workqueues(mp);
> + error = -xfs_init_mount_workqueues(mp);
> if (error)
> goto out_close_devices;
>
>
Reviewed-by: Jie Liu <jeff.liu@oracle.com>
Cheers,
-Jeff
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 21+ messages in thread
* [PATCH 8/9] xfs: negate xfs_icsb_init_counters error value
2014-05-13 8:56 [PATCH 0/9] xfs: error sign fixes for 3.15-rc6 Dave Chinner
` (6 preceding siblings ...)
2014-05-13 8:56 ` [PATCH 7/9] xfs: negate mount workqueue init error value Dave Chinner
@ 2014-05-13 8:56 ` Dave Chinner
2014-05-13 12:58 ` Jeff Liu
2014-05-13 8:56 ` [PATCH 9/9] xfs: list_lru_init returns a negative error Dave Chinner
2014-05-14 7:28 ` [PATCH 0/9] xfs: error sign fixes for 3.15-rc6 Jeff Liu
9 siblings, 1 reply; 21+ messages in thread
From: Dave Chinner @ 2014-05-13 8:56 UTC (permalink / raw)
To: xfs
From: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <dchinner@redhat.com>
---
fs/xfs/xfs_super.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/xfs/xfs_super.c b/fs/xfs/xfs_super.c
index e1597f2..3494eff 100644
--- a/fs/xfs/xfs_super.c
+++ b/fs/xfs/xfs_super.c
@@ -1437,7 +1437,7 @@ xfs_fs_fill_super(
if (error)
goto out_close_devices;
- error = xfs_icsb_init_counters(mp);
+ error = -xfs_icsb_init_counters(mp);
if (error)
goto out_destroy_workqueues;
--
1.9.0
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply related [flat|nested] 21+ messages in thread* Re: [PATCH 8/9] xfs: negate xfs_icsb_init_counters error value
2014-05-13 8:56 ` [PATCH 8/9] xfs: negate xfs_icsb_init_counters " Dave Chinner
@ 2014-05-13 12:58 ` Jeff Liu
0 siblings, 0 replies; 21+ messages in thread
From: Jeff Liu @ 2014-05-13 12:58 UTC (permalink / raw)
To: Dave Chinner, xfs
On 05/13 2014 16:56 PM, Dave Chinner wrote:
> From: Dave Chinner <dchinner@redhat.com>
>
> Signed-off-by: Dave Chinner <dchinner@redhat.com>
> ---
> fs/xfs/xfs_super.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/fs/xfs/xfs_super.c b/fs/xfs/xfs_super.c
> index e1597f2..3494eff 100644
> --- a/fs/xfs/xfs_super.c
> +++ b/fs/xfs/xfs_super.c
> @@ -1437,7 +1437,7 @@ xfs_fs_fill_super(
> if (error)
> goto out_close_devices;
>
> - error = xfs_icsb_init_counters(mp);
> + error = -xfs_icsb_init_counters(mp);
> if (error)
> goto out_destroy_workqueues;
>
>
Reviewed-by: Jie Liu <jeff.liu@oracle.com>
Cheers,
-Jeff
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 21+ messages in thread
* [PATCH 9/9] xfs: list_lru_init returns a negative error
2014-05-13 8:56 [PATCH 0/9] xfs: error sign fixes for 3.15-rc6 Dave Chinner
` (7 preceding siblings ...)
2014-05-13 8:56 ` [PATCH 8/9] xfs: negate xfs_icsb_init_counters " Dave Chinner
@ 2014-05-13 8:56 ` Dave Chinner
2014-05-13 13:05 ` Jeff Liu
2014-05-14 7:28 ` [PATCH 0/9] xfs: error sign fixes for 3.15-rc6 Jeff Liu
9 siblings, 1 reply; 21+ messages in thread
From: Dave Chinner @ 2014-05-13 8:56 UTC (permalink / raw)
To: xfs
From: Dave Chinner <dchinner@redhat.com>
And we don't invert it properly when initialising the dquot lru
list.
Signed-off-by: Dave Chinner <dchinner@redhat.com>
---
fs/xfs/xfs_qm.c | 26 ++++++++++++++------------
1 file changed, 14 insertions(+), 12 deletions(-)
diff --git a/fs/xfs/xfs_qm.c b/fs/xfs/xfs_qm.c
index 348e4d2..dc977b6 100644
--- a/fs/xfs/xfs_qm.c
+++ b/fs/xfs/xfs_qm.c
@@ -843,22 +843,17 @@ xfs_qm_init_quotainfo(
qinf = mp->m_quotainfo = kmem_zalloc(sizeof(xfs_quotainfo_t), KM_SLEEP);
- if ((error = list_lru_init(&qinf->qi_lru))) {
- kmem_free(qinf);
- mp->m_quotainfo = NULL;
- return error;
- }
+ error = -list_lru_init(&qinf->qi_lru);
+ if (error)
+ goto out_free_qinf;
/*
* See if quotainodes are setup, and if not, allocate them,
* and change the superblock accordingly.
*/
- if ((error = xfs_qm_init_quotainos(mp))) {
- list_lru_destroy(&qinf->qi_lru);
- kmem_free(qinf);
- mp->m_quotainfo = NULL;
- return error;
- }
+ error = xfs_qm_init_quotainos(mp);
+ if (error)
+ goto out_free_lru;
INIT_RADIX_TREE(&qinf->qi_uquota_tree, GFP_NOFS);
INIT_RADIX_TREE(&qinf->qi_gquota_tree, GFP_NOFS);
@@ -918,7 +913,7 @@ xfs_qm_init_quotainfo(
qinf->qi_isoftlimit = be64_to_cpu(ddqp->d_ino_softlimit);
qinf->qi_rtbhardlimit = be64_to_cpu(ddqp->d_rtb_hardlimit);
qinf->qi_rtbsoftlimit = be64_to_cpu(ddqp->d_rtb_softlimit);
-
+
xfs_qm_dqdestroy(dqp);
} else {
qinf->qi_btimelimit = XFS_QM_BTIMELIMIT;
@@ -935,6 +930,13 @@ xfs_qm_init_quotainfo(
qinf->qi_shrinker.flags = SHRINKER_NUMA_AWARE;
register_shrinker(&qinf->qi_shrinker);
return 0;
+
+out_free_lru:
+ list_lru_destroy(&qinf->qi_lru);
+out_free_qinf:
+ kmem_free(qinf);
+ mp->m_quotainfo = NULL;
+ return error;
}
--
1.9.0
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply related [flat|nested] 21+ messages in thread* Re: [PATCH 0/9] xfs: error sign fixes for 3.15-rc6
2014-05-13 8:56 [PATCH 0/9] xfs: error sign fixes for 3.15-rc6 Dave Chinner
` (8 preceding siblings ...)
2014-05-13 8:56 ` [PATCH 9/9] xfs: list_lru_init returns a negative error Dave Chinner
@ 2014-05-14 7:28 ` Jeff Liu
2014-05-14 21:28 ` Dave Chinner
9 siblings, 1 reply; 21+ messages in thread
From: Jeff Liu @ 2014-05-14 7:28 UTC (permalink / raw)
To: Dave Chinner; +Cc: xfs
Hi Dave,
On 05/13/2014 04:56 PM, Dave Chinner wrote:
> Hi folks,
>
> I've been working through the mess that is the
> error sign impedance mismatch between the core XFS code and the rest
> of the kernel. I'm about half way through the codebase, and I've
> found a bunch of incorrect error signs throughout the VFS interface
> layers.
>
> These were effectively all found by inspection, and is
> further evidence that we need to convert all of XFS to negative
> errors as quickly as possible.
Would you like to find a volunteer to deal with that? I have a colleague
is trying to study XFS these days, looks this is a good task to him.
BTW, before doing negative errors converting, should we have libxfs infrastructure
support at first?
Cheers,
-Jeff
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 21+ messages in thread* Re: [PATCH 0/9] xfs: error sign fixes for 3.15-rc6
2014-05-14 7:28 ` [PATCH 0/9] xfs: error sign fixes for 3.15-rc6 Jeff Liu
@ 2014-05-14 21:28 ` Dave Chinner
0 siblings, 0 replies; 21+ messages in thread
From: Dave Chinner @ 2014-05-14 21:28 UTC (permalink / raw)
To: Jeff Liu; +Cc: xfs
On Wed, May 14, 2014 at 03:28:07PM +0800, Jeff Liu wrote:
> Hi Dave,
>
> On 05/13/2014 04:56 PM, Dave Chinner wrote:
> > Hi folks,
> >
> > I've been working through the mess that is the
> > error sign impedance mismatch between the core XFS code and the rest
> > of the kernel. I'm about half way through the codebase, and I've
> > found a bunch of incorrect error signs throughout the VFS interface
> > layers.
> >
> > These were effectively all found by inspection, and is
> > further evidence that we need to convert all of XFS to negative
> > errors as quickly as possible.
>
> Would you like to find a volunteer to deal with that? I have a colleague
> is trying to study XFS these days, looks this is a good task to him.
Thanks for the offer, but I've already done half the conversion of
the codebase. Hence I may as well finish it. Indeed, The sooner
I've done it, the sooner we can get it into the dev tree for
testing....
> BTW, before doing negative errors converting, should we have
> libxfs infrastructure support at first?
Makes no difference - the libxfs structural changes are just moving
files about and futzing with makefiles. It'll only take me an hour
to redo those patches from scratch, so it doesn't matter what state
the code base is in to start with. I'd prefer that the kernel libxfs
uses negative errors from the start, though ;)
Cheers,
Dave.
--
Dave Chinner
david@fromorbit.com
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 21+ messages in thread