diff options
author | Joe Perches <joe@perches.com> | 2015-03-25 05:00:24 +0100 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2015-03-25 05:00:24 +0100 |
commit | 5e9383f97e773e9a5385144ef5561f2ac0ee1349 (patch) | |
tree | 4ab0bccd3bf921b2b21252ec852e8e460461287f | |
parent | xfs: xfs_mru_cache_insert() should use GFP_NOFS (diff) | |
download | linux-5e9383f97e773e9a5385144ef5561f2ac0ee1349.tar.xz linux-5e9383f97e773e9a5385144ef5561f2ac0ee1349.zip |
xfs: Fix incorrect positive ENOMEM return
added a positive error return value.
This value filters up through the return layers and should be
negative as the other return values are in the same function.
Signed-off-by: Joe Perches <joe@perches.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
-rw-r--r-- | fs/xfs/xfs_super.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_super.c b/fs/xfs/xfs_super.c index 53c56a913778..194291381252 100644 --- a/fs/xfs/xfs_super.c +++ b/fs/xfs/xfs_super.c @@ -1398,7 +1398,7 @@ xfs_init_percpu_counters( error = percpu_counter_init(&mp->m_icount, 0, GFP_KERNEL); if (error) - return ENOMEM; + return -ENOMEM; error = percpu_counter_init(&mp->m_ifree, 0, GFP_KERNEL); if (error) |