~ubuntu-branches/ubuntu/vivid/aufs/vivid

« back to all changes in this revision

Viewing changes to fs/aufs/sysaufs.c

  • Committer: Bazaar Package Importer
  • Author(s): Julian Andres Klode
  • Date: 2008-08-21 14:58:54 UTC
  • mfrom: (1.2.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 12.
  • Revision ID: james.westby@ubuntu.com-20080821145854-a2qpyyfjwtbmarqj
Tags: upstream-0+20080719
ImportĀ upstreamĀ versionĀ 0+20080719

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Copyright (C) 2007-2008 Junjiro Okajima
 
2
 * Copyright (C) 2005-2008 Junjiro Okajima
3
3
 *
4
4
 * This program, aufs is free software; you can redistribute it and/or modify
5
5
 * it under the terms of the GNU General Public License as published by
19
19
/*
20
20
 * sysfs interface
21
21
 *
22
 
 * $Id: sysaufs.c,v 1.34 2008/06/02 02:33:58 sfjro Exp $
 
22
 * $Id: sysaufs.c,v 1.36 2008/07/07 01:12:38 sfjro Exp $
23
23
 */
24
24
 
25
25
#include <linux/fs.h>
354
354
{
355
355
        struct seq_file *seq;
356
356
 
357
 
        seq = kzalloc(sizeof(*seq), GFP_TEMPORARY);
 
357
        seq = kzalloc(sizeof(*seq), GFP_NOFS);
358
358
        if (seq) {
359
359
                //mutex_init(&seq.lock);
360
360
                seq->buf = p;
446
446
        AuTraceEnter();
447
447
        //AuDbg("here\n");
448
448
 
449
 
        sabr = kcalloc(sizeof(*sabr), 1, GFP_KERNEL);
 
449
        sabr = kcalloc(sizeof(*sabr), 1, GFP_NOFS);
450
450
        if (sabr)
451
451
                kref_init(&sabr->ref);
452
452
 
541
541
 
542
542
int sysaufs_sbi_init(struct au_sbinfo *sbinfo)
543
543
{
544
 
        sbinfo->si_sa = kcalloc(sizeof(*sbinfo->si_sa), 1, GFP_KERNEL);
 
544
        sbinfo->si_sa = kcalloc(sizeof(*sbinfo->si_sa), 1, GFP_NOFS);
545
545
        if (sbinfo->si_sa) {
546
546
                kref_init(&sbinfo->si_sa->ref);
547
547
                return 0;