~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to fs/ubifs/xattr.c

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
 */
57
57
 
58
58
#include "ubifs.h"
 
59
#include <linux/fs.h>
59
60
#include <linux/slab.h>
60
61
#include <linux/xattr.h>
61
62
#include <linux/posix_acl_xattr.h>
79
80
        SECURITY_XATTR,
80
81
};
81
82
 
82
 
static const struct inode_operations none_inode_operations;
83
 
static const struct address_space_operations none_address_operations;
84
 
static const struct file_operations none_file_operations;
 
83
static const struct inode_operations empty_iops;
 
84
static const struct file_operations empty_fops;
85
85
 
86
86
/**
87
87
 * create_xattr - create an extended attribute.
130
130
        }
131
131
 
132
132
        /* Re-define all operations to be "nothing" */
133
 
        inode->i_mapping->a_ops = &none_address_operations;
134
 
        inode->i_op = &none_inode_operations;
135
 
        inode->i_fop = &none_file_operations;
 
133
        inode->i_mapping->a_ops = &empty_aops;
 
134
        inode->i_op = &empty_iops;
 
135
        inode->i_fop = &empty_fops;
136
136
 
137
137
        inode->i_flags |= S_SYNC | S_NOATIME | S_NOCMTIME | S_NOQUOTA;
138
138
        ui = ubifs_inode(inode);