xfs: global error sign conversion
[deliverable/linux.git] / fs / xfs / xfs_filestream.c
index 8ec81bed7992149420efd5781cfb12c9596633f5..e92730c1d3ca6d7ba7f32938154d261285f7d1ef 100644 (file)
@@ -258,7 +258,7 @@ next_ag:
        if (*agp == NULLAGNUMBER)
                return 0;
 
-       err = ENOMEM;
+       err = -ENOMEM;
        item = kmem_alloc(sizeof(*item), KM_MAYFAIL);
        if (!item)
                goto out_put_ag;
@@ -268,7 +268,7 @@ next_ag:
 
        err = xfs_mru_cache_insert(mp->m_filestream, ip->i_ino, &item->mru);
        if (err) {
-               if (err == EEXIST)
+               if (err == -EEXIST)
                        err = 0;
                goto out_free_item;
        }
This page took 0.086192 seconds and 5 git commands to generate.