@@ -1374,7 +1374,6 @@ static ssize_t ext4_quota_write(struct super_block *sb, int type,
1374
1374
static int ext4_quota_enable (struct super_block * sb , int type , int format_id ,
1375
1375
unsigned int flags );
1376
1376
static int ext4_enable_quotas (struct super_block * sb );
1377
- static int ext4_get_next_id (struct super_block * sb , struct kqid * qid );
1378
1377
1379
1378
static struct dquot * * ext4_get_dquots (struct inode * inode )
1380
1379
{
@@ -1392,7 +1391,7 @@ static const struct dquot_operations ext4_quota_operations = {
1392
1391
.destroy_dquot = dquot_destroy ,
1393
1392
.get_projid = ext4_get_projid ,
1394
1393
.get_inode_usage = ext4_get_inode_usage ,
1395
- .get_next_id = ext4_get_next_id ,
1394
+ .get_next_id = dquot_get_next_id ,
1396
1395
};
1397
1396
1398
1397
static const struct quotactl_ops ext4_qctl_operations = {
@@ -6002,18 +6001,6 @@ static ssize_t ext4_quota_write(struct super_block *sb, int type,
6002
6001
}
6003
6002
return len ;
6004
6003
}
6005
-
6006
- static int ext4_get_next_id (struct super_block * sb , struct kqid * qid )
6007
- {
6008
- const struct quota_format_ops * ops ;
6009
-
6010
- if (!sb_has_quota_loaded (sb , qid -> type ))
6011
- return - ESRCH ;
6012
- ops = sb_dqopt (sb )-> ops [qid -> type ];
6013
- if (!ops || !ops -> get_next_id )
6014
- return - ENOSYS ;
6015
- return dquot_get_next_id (sb , qid );
6016
- }
6017
6004
#endif
6018
6005
6019
6006
static struct dentry * ext4_mount (struct file_system_type * fs_type , int flags ,
0 commit comments