mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 11:46:19 +00:00
ramfs: Remove quota call
Ramfs has no bussiness in quotas. Signed-off-by: Jan Kara <jack@suse.cz>
This commit is contained in:
parent
9e3509e273
commit
314649558d
1 changed files with 0 additions and 6 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue