aboutsummaryrefslogtreecommitdiffstats
path: root/fs/quota/quota.c
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2014-11-19 10:44:58 -0500
committerJan Kara <jack@suse.cz>2015-03-04 10:06:37 -0500
commit59b6ba699043e0f55d4057cf2ae79d9c1171bc58 (patch)
tree62027477e70d0293ebd2f07989ef0c353fcde802 /fs/quota/quota.c
parente54b2e2d723f138df35de0bf1f8262da116ca6fa (diff)
quota: Remove ->get_xstate and ->get_xstatev callbacks
These callbacks are now unused. Remove them. Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/quota/quota.c')
-rw-r--r--fs/quota/quota.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/fs/quota/quota.c b/fs/quota/quota.c
index 83939ff4c444..20d11cd21247 100644
--- a/fs/quota/quota.c
+++ b/fs/quota/quota.c
@@ -350,12 +350,9 @@ static int quota_getxstate(struct super_block *sb, void __user *addr)
350 struct fs_quota_stat fqs; 350 struct fs_quota_stat fqs;
351 int ret; 351 int ret;
352 352
353 if (!sb->s_qcop->get_xstate && !sb->s_qcop->get_state) 353 if (!sb->s_qcop->get_state)
354 return -ENOSYS; 354 return -ENOSYS;
355 if (sb->s_qcop->get_state) 355 ret = quota_getstate(sb, &fqs);
356 ret = quota_getstate(sb, &fqs);
357 else
358 ret = sb->s_qcop->get_xstate(sb, &fqs);
359 if (!ret && copy_to_user(addr, &fqs, sizeof(fqs))) 356 if (!ret && copy_to_user(addr, &fqs, sizeof(fqs)))
360 return -EFAULT; 357 return -EFAULT;
361 return ret; 358 return ret;
@@ -414,7 +411,7 @@ static int quota_getxstatev(struct super_block *sb, void __user *addr)
414 struct fs_quota_statv fqs; 411 struct fs_quota_statv fqs;
415 int ret; 412 int ret;
416 413
417 if (!sb->s_qcop->get_xstatev && !sb->s_qcop->get_state) 414 if (!sb->s_qcop->get_state)
418 return -ENOSYS; 415 return -ENOSYS;
419 416
420 memset(&fqs, 0, sizeof(fqs)); 417 memset(&fqs, 0, sizeof(fqs));
@@ -428,10 +425,7 @@ static int quota_getxstatev(struct super_block *sb, void __user *addr)
428 default: 425 default:
429 return -EINVAL; 426 return -EINVAL;
430 } 427 }
431 if (sb->s_qcop->get_state) 428 ret = quota_getstatev(sb, &fqs);
432 ret = quota_getstatev(sb, &fqs);
433 else
434 ret = sb->s_qcop->get_xstatev(sb, &fqs);
435 if (!ret && copy_to_user(addr, &fqs, sizeof(fqs))) 429 if (!ret && copy_to_user(addr, &fqs, sizeof(fqs)))
436 return -EFAULT; 430 return -EFAULT;
437 return ret; 431 return ret;