Skip to content

Commit 287a809

Browse files
Christoph Hellwigjankara
authored andcommitted
quota: rename default quotactl methods to dquot_
Follow the dquot_* style used elsewhere in dquot.c. [Jan Kara: Fixed up missing conversion of ext2] Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jan Kara <jack@suse.cz>
1 parent 123e9ca commit 287a809

10 files changed

Lines changed: 86 additions & 86 deletions

File tree

‎fs/ext2/super.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1068,7 +1068,7 @@ static int ext2_fill_super(struct super_block *sb, void *data, int silent)
10681068

10691069
#ifdef CONFIG_QUOTA
10701070
sb->dq_op = &dquot_operations;
1071-
sb->s_qcop = &vfs_quotactl_ops;
1071+
sb->s_qcop = &dquot_quotactl_ops;
10721072
#endif
10731073

10741074
root = ext2_iget(sb, EXT2_ROOT_INO);

‎fs/ext3/super.c‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -769,12 +769,12 @@ static const struct dquot_operations ext3_quota_operations = {
769769

770770
static const struct quotactl_ops ext3_qctl_operations = {
771771
.quota_on = ext3_quota_on,
772-
.quota_off = vfs_quota_off,
773-
.quota_sync = vfs_quota_sync,
774-
.get_info = vfs_get_dqinfo,
775-
.set_info = vfs_set_dqinfo,
776-
.get_dqblk = vfs_get_dqblk,
777-
.set_dqblk = vfs_set_dqblk
772+
.quota_off = dquot_quota_off,
773+
.quota_sync = dquot_quota_sync,
774+
.get_info = dquot_get_dqinfo,
775+
.set_info = dquot_set_dqinfo,
776+
.get_dqblk = dquot_get_dqblk,
777+
.set_dqblk = dquot_set_dqblk
778778
};
779779
#endif
780780

@@ -1529,7 +1529,7 @@ static void ext3_orphan_cleanup (struct super_block * sb,
15291529
/* Turn quotas off */
15301530
for (i = 0; i < MAXQUOTAS; i++) {
15311531
if (sb_dqopt(sb)->files[i])
1532-
vfs_quota_off(sb, i);
1532+
dquot_quota_off(sb, i);
15331533
}
15341534
#endif
15351535
sb->s_flags = s_flags; /* Restore MS_RDONLY status */
@@ -2862,8 +2862,8 @@ static int ext3_write_info(struct super_block *sb, int type)
28622862
*/
28632863
static int ext3_quota_on_mount(struct super_block *sb, int type)
28642864
{
2865-
return vfs_quota_on_mount(sb, EXT3_SB(sb)->s_qf_names[type],
2866-
EXT3_SB(sb)->s_jquota_fmt, type);
2865+
return dquot_quota_on_mount(sb, EXT3_SB(sb)->s_qf_names[type],
2866+
EXT3_SB(sb)->s_jquota_fmt, type);
28672867
}
28682868

28692869
/*
@@ -2914,7 +2914,7 @@ static int ext3_quota_on(struct super_block *sb, int type, int format_id,
29142914
}
29152915
}
29162916

2917-
err = vfs_quota_on_path(sb, type, format_id, &path);
2917+
err = dquot_quota_on_path(sb, type, format_id, &path);
29182918
path_put(&path);
29192919
return err;
29202920
}

‎fs/ext4/super.c‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1083,12 +1083,12 @@ static const struct dquot_operations ext4_quota_operations = {
10831083

10841084
static const struct quotactl_ops ext4_qctl_operations = {
10851085
.quota_on = ext4_quota_on,
1086-
.quota_off = vfs_quota_off,
1087-
.quota_sync = vfs_quota_sync,
1088-
.get_info = vfs_get_dqinfo,
1089-
.set_info = vfs_set_dqinfo,
1090-
.get_dqblk = vfs_get_dqblk,
1091-
.set_dqblk = vfs_set_dqblk
1086+
.quota_off = dquot_quota_off,
1087+
.quota_sync = dquot_quota_sync,
1088+
.get_info = dquot_get_dqinfo,
1089+
.set_info = dquot_set_dqinfo,
1090+
.get_dqblk = dquot_get_dqblk,
1091+
.set_dqblk = dquot_set_dqblk
10921092
};
10931093
#endif
10941094

@@ -2053,7 +2053,7 @@ static void ext4_orphan_cleanup(struct super_block *sb,
20532053
/* Turn quotas off */
20542054
for (i = 0; i < MAXQUOTAS; i++) {
20552055
if (sb_dqopt(sb)->files[i])
2056-
vfs_quota_off(sb, i);
2056+
dquot_quota_off(sb, i);
20572057
}
20582058
#endif
20592059
sb->s_flags = s_flags; /* Restore MS_RDONLY status */
@@ -3916,8 +3916,8 @@ static int ext4_write_info(struct super_block *sb, int type)
39163916
*/
39173917
static int ext4_quota_on_mount(struct super_block *sb, int type)
39183918
{
3919-
return vfs_quota_on_mount(sb, EXT4_SB(sb)->s_qf_names[type],
3920-
EXT4_SB(sb)->s_jquota_fmt, type);
3919+
return dquot_quota_on_mount(sb, EXT4_SB(sb)->s_qf_names[type],
3920+
EXT4_SB(sb)->s_jquota_fmt, type);
39213921
}
39223922

39233923
/*
@@ -3969,7 +3969,7 @@ static int ext4_quota_on(struct super_block *sb, int type, int format_id,
39693969
}
39703970
}
39713971

3972-
err = vfs_quota_on_path(sb, type, format_id, &path);
3972+
err = dquot_quota_on_path(sb, type, format_id, &path);
39733973
path_put(&path);
39743974
return err;
39753975
}

‎fs/jfs/super.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ static int jfs_fill_super(struct super_block *sb, void *data, int silent)
483483
sb->s_export_op = &jfs_export_operations;
484484
#ifdef CONFIG_QUOTA
485485
sb->dq_op = &dquot_operations;
486-
sb->s_qcop = &vfs_quotactl_ops;
486+
sb->s_qcop = &dquot_quotactl_ops;
487487
#endif
488488

489489
/*

‎fs/ocfs2/super.c‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -918,8 +918,8 @@ static int ocfs2_enable_quotas(struct ocfs2_super *osb)
918918
status = -ENOENT;
919919
goto out_quota_off;
920920
}
921-
status = vfs_quota_enable(inode[type], type, QFMT_OCFS2,
922-
DQUOT_USAGE_ENABLED);
921+
status = dquot_enable(inode[type], type, QFMT_OCFS2,
922+
DQUOT_USAGE_ENABLED);
923923
if (status < 0)
924924
goto out_quota_off;
925925
}
@@ -972,8 +972,8 @@ static int ocfs2_quota_on(struct super_block *sb, int type, int format_id,
972972
if (!OCFS2_HAS_RO_COMPAT_FEATURE(sb, feature[type]))
973973
return -EINVAL;
974974

975-
return vfs_quota_enable(sb_dqopt(sb)->files[type], type,
976-
format_id, DQUOT_LIMITS_ENABLED);
975+
return dquot_enable(sb_dqopt(sb)->files[type], type,
976+
format_id, DQUOT_LIMITS_ENABLED);
977977
}
978978

979979
/* Handle quota off quotactl */
@@ -985,11 +985,11 @@ static int ocfs2_quota_off(struct super_block *sb, int type)
985985
static const struct quotactl_ops ocfs2_quotactl_ops = {
986986
.quota_on = ocfs2_quota_on,
987987
.quota_off = ocfs2_quota_off,
988-
.quota_sync = vfs_quota_sync,
989-
.get_info = vfs_get_dqinfo,
990-
.set_info = vfs_set_dqinfo,
991-
.get_dqblk = vfs_get_dqblk,
992-
.set_dqblk = vfs_set_dqblk,
988+
.quota_sync = dquot_quota_sync,
989+
.get_info = dquot_get_dqinfo,
990+
.set_info = dquot_set_dqinfo,
991+
.get_dqblk = dquot_get_dqblk,
992+
.set_dqblk = dquot_set_dqblk,
993993
};
994994

995995
static int ocfs2_fill_super(struct super_block *sb, void *data, int silent)

‎fs/quota/dquot.c‎

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,7 @@ int dquot_scan_active(struct super_block *sb,
584584
}
585585
EXPORT_SYMBOL(dquot_scan_active);
586586

587-
int vfs_quota_sync(struct super_block *sb, int type, int wait)
587+
int dquot_quota_sync(struct super_block *sb, int type, int wait)
588588
{
589589
struct list_head *dirty;
590590
struct dquot *dquot;
@@ -656,7 +656,7 @@ int vfs_quota_sync(struct super_block *sb, int type, int wait)
656656

657657
return 0;
658658
}
659-
EXPORT_SYMBOL(vfs_quota_sync);
659+
EXPORT_SYMBOL(dquot_quota_sync);
660660

661661
/* Free unused dquots from cache */
662662
static void prune_dqcache(int count)
@@ -1998,12 +1998,12 @@ int dquot_disable(struct super_block *sb, int type, unsigned int flags)
19981998
}
19991999
EXPORT_SYMBOL(dquot_disable);
20002000

2001-
int vfs_quota_off(struct super_block *sb, int type)
2001+
int dquot_quota_off(struct super_block *sb, int type)
20022002
{
20032003
return dquot_disable(sb, type,
20042004
DQUOT_USAGE_ENABLED | DQUOT_LIMITS_ENABLED);
20052005
}
2006-
EXPORT_SYMBOL(vfs_quota_off);
2006+
EXPORT_SYMBOL(dquot_quota_off);
20072007

20082008
/*
20092009
* Turn quotas on on a device
@@ -2158,7 +2158,7 @@ int dquot_resume(struct super_block *sb, int type)
21582158
}
21592159
EXPORT_SYMBOL(dquot_resume);
21602160

2161-
int vfs_quota_on_path(struct super_block *sb, int type, int format_id,
2161+
int dquot_quota_on_path(struct super_block *sb, int type, int format_id,
21622162
struct path *path)
21632163
{
21642164
int error = security_quota_on(path->dentry);
@@ -2173,28 +2173,28 @@ int vfs_quota_on_path(struct super_block *sb, int type, int format_id,
21732173
DQUOT_LIMITS_ENABLED);
21742174
return error;
21752175
}
2176-
EXPORT_SYMBOL(vfs_quota_on_path);
2176+
EXPORT_SYMBOL(dquot_quota_on_path);
21772177

2178-
int vfs_quota_on(struct super_block *sb, int type, int format_id, char *name)
2178+
int dquot_quota_on(struct super_block *sb, int type, int format_id, char *name)
21792179
{
21802180
struct path path;
21812181
int error;
21822182

21832183
error = kern_path(name, LOOKUP_FOLLOW, &path);
21842184
if (!error) {
2185-
error = vfs_quota_on_path(sb, type, format_id, &path);
2185+
error = dquot_quota_on_path(sb, type, format_id, &path);
21862186
path_put(&path);
21872187
}
21882188
return error;
21892189
}
2190-
EXPORT_SYMBOL(vfs_quota_on);
2190+
EXPORT_SYMBOL(dquot_quota_on);
21912191

21922192
/*
21932193
* More powerful function for turning on quotas allowing setting
21942194
* of individual quota flags
21952195
*/
2196-
int vfs_quota_enable(struct inode *inode, int type, int format_id,
2197-
unsigned int flags)
2196+
int dquot_enable(struct inode *inode, int type, int format_id,
2197+
unsigned int flags)
21982198
{
21992199
int ret = 0;
22002200
struct super_block *sb = inode->i_sb;
@@ -2234,13 +2234,13 @@ int vfs_quota_enable(struct inode *inode, int type, int format_id,
22342234
load_quota:
22352235
return vfs_load_quota_inode(inode, type, format_id, flags);
22362236
}
2237-
EXPORT_SYMBOL(vfs_quota_enable);
2237+
EXPORT_SYMBOL(dquot_enable);
22382238

22392239
/*
22402240
* This function is used when filesystem needs to initialize quotas
22412241
* during mount time.
22422242
*/
2243-
int vfs_quota_on_mount(struct super_block *sb, char *qf_name,
2243+
int dquot_quota_on_mount(struct super_block *sb, char *qf_name,
22442244
int format_id, int type)
22452245
{
22462246
struct dentry *dentry;
@@ -2266,7 +2266,7 @@ int vfs_quota_on_mount(struct super_block *sb, char *qf_name,
22662266
dput(dentry);
22672267
return error;
22682268
}
2269-
EXPORT_SYMBOL(vfs_quota_on_mount);
2269+
EXPORT_SYMBOL(dquot_quota_on_mount);
22702270

22712271
static inline qsize_t qbtos(qsize_t blocks)
22722272
{
@@ -2301,8 +2301,8 @@ static void do_get_dqblk(struct dquot *dquot, struct fs_disk_quota *di)
23012301
spin_unlock(&dq_data_lock);
23022302
}
23032303

2304-
int vfs_get_dqblk(struct super_block *sb, int type, qid_t id,
2305-
struct fs_disk_quota *di)
2304+
int dquot_get_dqblk(struct super_block *sb, int type, qid_t id,
2305+
struct fs_disk_quota *di)
23062306
{
23072307
struct dquot *dquot;
23082308

@@ -2314,7 +2314,7 @@ int vfs_get_dqblk(struct super_block *sb, int type, qid_t id,
23142314

23152315
return 0;
23162316
}
2317-
EXPORT_SYMBOL(vfs_get_dqblk);
2317+
EXPORT_SYMBOL(dquot_get_dqblk);
23182318

23192319
#define VFS_FS_DQ_MASK \
23202320
(FS_DQ_BCOUNT | FS_DQ_BSOFT | FS_DQ_BHARD | \
@@ -2413,7 +2413,7 @@ static int do_set_dqblk(struct dquot *dquot, struct fs_disk_quota *di)
24132413
return 0;
24142414
}
24152415

2416-
int vfs_set_dqblk(struct super_block *sb, int type, qid_t id,
2416+
int dquot_set_dqblk(struct super_block *sb, int type, qid_t id,
24172417
struct fs_disk_quota *di)
24182418
{
24192419
struct dquot *dquot;
@@ -2429,10 +2429,10 @@ int vfs_set_dqblk(struct super_block *sb, int type, qid_t id,
24292429
out:
24302430
return rc;
24312431
}
2432-
EXPORT_SYMBOL(vfs_set_dqblk);
2432+
EXPORT_SYMBOL(dquot_set_dqblk);
24332433

24342434
/* Generic routine for getting common part of quota file information */
2435-
int vfs_get_dqinfo(struct super_block *sb, int type, struct if_dqinfo *ii)
2435+
int dquot_get_dqinfo(struct super_block *sb, int type, struct if_dqinfo *ii)
24362436
{
24372437
struct mem_dqinfo *mi;
24382438

@@ -2451,10 +2451,10 @@ int vfs_get_dqinfo(struct super_block *sb, int type, struct if_dqinfo *ii)
24512451
mutex_unlock(&sb_dqopt(sb)->dqonoff_mutex);
24522452
return 0;
24532453
}
2454-
EXPORT_SYMBOL(vfs_get_dqinfo);
2454+
EXPORT_SYMBOL(dquot_get_dqinfo);
24552455

24562456
/* Generic routine for setting common part of quota file information */
2457-
int vfs_set_dqinfo(struct super_block *sb, int type, struct if_dqinfo *ii)
2457+
int dquot_set_dqinfo(struct super_block *sb, int type, struct if_dqinfo *ii)
24582458
{
24592459
struct mem_dqinfo *mi;
24602460
int err = 0;
@@ -2481,18 +2481,18 @@ int vfs_set_dqinfo(struct super_block *sb, int type, struct if_dqinfo *ii)
24812481
mutex_unlock(&sb_dqopt(sb)->dqonoff_mutex);
24822482
return err;
24832483
}
2484-
EXPORT_SYMBOL(vfs_set_dqinfo);
2484+
EXPORT_SYMBOL(dquot_set_dqinfo);
24852485

2486-
const struct quotactl_ops vfs_quotactl_ops = {
2487-
.quota_on = vfs_quota_on,
2488-
.quota_off = vfs_quota_off,
2489-
.quota_sync = vfs_quota_sync,
2490-
.get_info = vfs_get_dqinfo,
2491-
.set_info = vfs_set_dqinfo,
2492-
.get_dqblk = vfs_get_dqblk,
2493-
.set_dqblk = vfs_set_dqblk
2486+
const struct quotactl_ops dquot_quotactl_ops = {
2487+
.quota_on = dquot_quota_on,
2488+
.quota_off = dquot_quota_off,
2489+
.quota_sync = dquot_quota_sync,
2490+
.get_info = dquot_get_dqinfo,
2491+
.set_info = dquot_set_dqinfo,
2492+
.get_dqblk = dquot_get_dqblk,
2493+
.set_dqblk = dquot_set_dqblk
24942494
};
2495-
EXPORT_SYMBOL(vfs_quotactl_ops);
2495+
EXPORT_SYMBOL(dquot_quotactl_ops);
24962496

24972497
static int do_proc_dqstats(struct ctl_table *table, int write,
24982498
void __user *buffer, size_t *lenp, loff_t *ppos)

‎fs/reiserfs/super.c‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ static int finish_unfinished(struct super_block *s)
305305
/* Turn quotas off */
306306
for (i = 0; i < MAXQUOTAS; i++) {
307307
if (sb_dqopt(s)->files[i])
308-
vfs_quota_off(s, i);
308+
dquot_quota_off(s, i);
309309
}
310310
if (ms_active_set)
311311
/* Restore the flag back */
@@ -636,12 +636,12 @@ static const struct dquot_operations reiserfs_quota_operations = {
636636

637637
static const struct quotactl_ops reiserfs_qctl_operations = {
638638
.quota_on = reiserfs_quota_on,
639-
.quota_off = vfs_quota_off,
640-
.quota_sync = vfs_quota_sync,
641-
.get_info = vfs_get_dqinfo,
642-
.set_info = vfs_set_dqinfo,
643-
.get_dqblk = vfs_get_dqblk,
644-
.set_dqblk = vfs_set_dqblk,
639+
.quota_off = dquot_quota_off,
640+
.quota_sync = dquot_quota_sync,
641+
.get_info = dquot_get_dqinfo,
642+
.set_info = dquot_set_dqinfo,
643+
.get_dqblk = dquot_get_dqblk,
644+
.set_dqblk = dquot_set_dqblk,
645645
};
646646
#endif
647647

@@ -2030,8 +2030,8 @@ static int reiserfs_write_info(struct super_block *sb, int type)
20302030
*/
20312031
static int reiserfs_quota_on_mount(struct super_block *sb, int type)
20322032
{
2033-
return vfs_quota_on_mount(sb, REISERFS_SB(sb)->s_qf_names[type],
2034-
REISERFS_SB(sb)->s_jquota_fmt, type);
2033+
return dquot_quota_on_mount(sb, REISERFS_SB(sb)->s_qf_names[type],
2034+
REISERFS_SB(sb)->s_jquota_fmt, type);
20352035
}
20362036

20372037
/*
@@ -2091,7 +2091,7 @@ static int reiserfs_quota_on(struct super_block *sb, int type, int format_id,
20912091
if (err)
20922092
goto out;
20932093
}
2094-
err = vfs_quota_on_path(sb, type, format_id, &path);
2094+
err = dquot_quota_on_path(sb, type, format_id, &path);
20952095
out:
20962096
path_put(&path);
20972097
return err;

‎fs/udf/super.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1949,7 +1949,7 @@ static int udf_fill_super(struct super_block *sb, void *options, int silent)
19491949
sb->s_op = &udf_sb_ops;
19501950
sb->s_export_op = &udf_export_ops;
19511951
#ifdef CONFIG_QUOTA
1952-
sb->s_qcop = &vfs_quotactl_ops;
1952+
sb->s_qcop = &dquot_quotactl_ops;
19531953
sb->dq_op = NULL; /* &dquot_operations */
19541954
#endif
19551955

0 commit comments

Comments
 (0)