diff options
author | Jan Kara <jack@suse.cz> | 2009-01-26 16:46:21 +0100 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2009-03-26 02:18:35 +0100 |
commit | 314649558d2ff0927d102fa06c62557a92ce5c1d (patch) | |
tree | 823199b2c5d07244cfc4b17b7f8f4e79cf9f9dd7 | |
parent | 9e3509e273ecc2a5f937c493f9bb71e5e41ac2e5 (diff) | |
download | op-kernel-dev-314649558d2ff0927d102fa06c62557a92ce5c1d.zip op-kernel-dev-314649558d2ff0927d102fa06c62557a92ce5c1d.tar.gz |
ramfs: Remove quota call
Ramfs has no bussiness in quotas.
Signed-off-by: Jan Kara <jack@suse.cz>
-rw-r--r-- | fs/ramfs/file-nommu.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/fs/ramfs/file-nommu.c b/fs/ramfs/file-nommu.c index 5d7c7ec..995ef1d 100644 --- a/fs/ramfs/file-nommu.c +++ b/fs/ramfs/file-nommu.c @@ -18,7 +18,6 @@ #include <linux/string.h> #include <linux/backing-dev.h> #include <linux/ramfs.h> -#include <linux/quotaops.h> #include <linux/pagevec.h> #include <linux/mman.h> @@ -205,11 +204,6 @@ static int ramfs_nommu_setattr(struct dentry *dentry, struct iattr *ia) if (ret) return ret; - /* by providing our own setattr() method, we skip this quotaism */ - if ((old_ia_valid & ATTR_UID && ia->ia_uid != inode->i_uid) || - (old_ia_valid & ATTR_GID && ia->ia_gid != inode->i_gid)) - ret = DQUOT_TRANSFER(inode, ia) ? -EDQUOT : 0; - /* pick out size-changing events */ if (ia->ia_valid & ATTR_SIZE) { loff_t size = i_size_read(inode); |