diff options
author | Jan Kara <jack@suse.cz> | 2010-05-20 16:00:36 +0200 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2010-05-24 14:10:19 +0200 |
commit | 8f45c33decf62e1aaaa9411aae8fef6a38f95845 (patch) | |
tree | 35304753fb416a4f82ec93609b8664d12d2a8d50 /fs/ufs/truncate.c | |
parent | udf: Remove dead quota code (diff) | |
download | linux-8f45c33decf62e1aaaa9411aae8fef6a38f95845.tar.xz linux-8f45c33decf62e1aaaa9411aae8fef6a38f95845.zip |
ufs: Remove dead quota code
UFS quota is non-functional at least since 2.6.12 because dq_op was set
to NULL. Since the filesystem exists mainly to allow cooperation with Solaris
and quota format isn't standard, just remove the dead code.
CC: Evgeniy Dushistov <dushistov@mail.ru>
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/ufs/truncate.c')
-rw-r--r-- | fs/ufs/truncate.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/fs/ufs/truncate.c b/fs/ufs/truncate.c index f294c44577dc..4171e2df18dd 100644 --- a/fs/ufs/truncate.c +++ b/fs/ufs/truncate.c @@ -44,7 +44,6 @@ #include <linux/buffer_head.h> #include <linux/blkdev.h> #include <linux/sched.h> -#include <linux/quotaops.h> #include "ufs_fs.h" #include "ufs.h" @@ -518,15 +517,6 @@ int ufs_setattr(struct dentry *dentry, struct iattr *attr) if (error) return error; - if (is_quota_modification(inode, attr)) - dquot_initialize(inode); - - if ((ia_valid & ATTR_UID && attr->ia_uid != inode->i_uid) || - (ia_valid & ATTR_GID && attr->ia_gid != inode->i_gid)) { - error = dquot_transfer(inode, attr); - if (error) - return error; - } if (ia_valid & ATTR_SIZE && attr->ia_size != inode->i_size) { loff_t old_i_size = inode->i_size; |