]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - fs/ubifs/file.c
UBIFS: introduce a separate structure for budgeting info
[karo-tx-linux.git] / fs / ubifs / file.c
index 3f254e37b25b029e81b17fd0517aaa076f2f6940..3594aae12a88e5324165cfc5343a026c484cdfe9 100644 (file)
@@ -212,7 +212,7 @@ static void release_new_page_budget(struct ubifs_info *c)
  */
 static void release_existing_page_budget(struct ubifs_info *c)
 {
-       struct ubifs_budget_req req = { .dd_growth = c->page_budget};
+       struct ubifs_budget_req req = { .dd_growth = c->bi.page_budget};
 
        ubifs_release_budget(c, &req);
 }
@@ -1189,7 +1189,7 @@ out_budg:
        if (budgeted)
                ubifs_release_budget(c, &req);
        else {
-               c->nospace = c->nospace_rp = 0;
+               c->bi.nospace = c->bi.nospace_rp = 0;
                smp_wmb();
        }
        return err;