fscache, cachefiles: Display stats of no-space events
[linux-2.6-microblaze.git] / fs / cachefiles / namei.c
index b549e9f..ab3ca59 100644 (file)
@@ -115,7 +115,8 @@ retry:
 
        /* we need to create the subdir if it doesn't exist yet */
        if (d_is_negative(subdir)) {
-               ret = cachefiles_has_space(cache, 1, 0);
+               ret = cachefiles_has_space(cache, 1, 0,
+                                          cachefiles_has_space_for_create);
                if (ret < 0)
                        goto mkdir_error;
 
@@ -513,7 +514,8 @@ static bool cachefiles_create_file(struct cachefiles_object *object)
        struct file *file;
        int ret;
 
-       ret = cachefiles_has_space(object->volume->cache, 1, 0);
+       ret = cachefiles_has_space(object->volume->cache, 1, 0,
+                                  cachefiles_has_space_for_create);
        if (ret < 0)
                return false;