@@ -584,7 +584,7 @@ int dquot_scan_active(struct super_block *sb,
584584}
585585EXPORT_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 */
662662static void prune_dqcache (int count )
@@ -1998,12 +1998,12 @@ int dquot_disable(struct super_block *sb, int type, unsigned int flags)
19981998}
19991999EXPORT_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}
21592159EXPORT_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,
22342234load_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
22712271static 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,
24292429out :
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
24972497static int do_proc_dqstats (struct ctl_table * table , int write ,
24982498 void __user * buffer , size_t * lenp , loff_t * ppos )
0 commit comments