aboutsummaryrefslogtreecommitdiffstats
path: root/fs/quota/dquot.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@infradead.org>2010-05-19 07:16:45 -0400
committerJan Kara <jack@suse.cz>2010-05-24 08:10:17 -0400
commit287a80958cf63fc5c68d5bf6e89a3669dd66234a (patch)
tree8e6883881709ffbbe3b1d6cb7a5b4dcef3428380 /fs/quota/dquot.c
parent123e9caf1e85008ab7eb5f6cd58c44f9a5d73b2b (diff)
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>
Diffstat (limited to 'fs/quota/dquot.c')
-rw-r--r--fs/quota/dquot.c64
1 files changed, 32 insertions, 32 deletions
diff --git a/fs/quota/dquot.c b/fs/quota/dquot.c
index 9ba526e3f719..1914a2f6c84c 100644
--- a/fs/quota/dquot.c
+++ b/fs/quota/dquot.c
@@ -584,7 +584,7 @@ out:
584} 584}
585EXPORT_SYMBOL(dquot_scan_active); 585EXPORT_SYMBOL(dquot_scan_active);
586 586
587int vfs_quota_sync(struct super_block *sb, int type, int wait) 587int dquot_quota_sync(struct super_block *sb, int type, int wait)
588{ 588{
589 struct list_head *dirty; 589 struct list_head *dirty;
590 struct dquot *dquot; 590 struct dquot *dquot;
@@ -656,7 +656,7 @@ int vfs_quota_sync(struct super_block *sb, int type, int wait)
656 656
657 return 0; 657 return 0;
658} 658}
659EXPORT_SYMBOL(vfs_quota_sync); 659EXPORT_SYMBOL(dquot_quota_sync);
660 660
661/* Free unused dquots from cache */ 661/* Free unused dquots from cache */
662static void prune_dqcache(int count) 662static void prune_dqcache(int count)
@@ -1998,12 +1998,12 @@ put_inodes:
1998} 1998}
1999EXPORT_SYMBOL(dquot_disable); 1999EXPORT_SYMBOL(dquot_disable);
2000 2000
2001int vfs_quota_off(struct super_block *sb, int type) 2001int dquot_quota_off(struct super_block *sb, int type)
2002{ 2002{
2003 return dquot_disable(sb, type, 2003 return dquot_disable(sb, type,
2004 DQUOT_USAGE_ENABLED | DQUOT_LIMITS_ENABLED); 2004 DQUOT_USAGE_ENABLED | DQUOT_LIMITS_ENABLED);
2005} 2005}
2006EXPORT_SYMBOL(vfs_quota_off); 2006EXPORT_SYMBOL(dquot_quota_off);
2007 2007
2008/* 2008/*
2009 * Turn quotas on on a device 2009 * Turn quotas on on a device
@@ -2158,7 +2158,7 @@ int dquot_resume(struct super_block *sb, int type)
2158} 2158}
2159EXPORT_SYMBOL(dquot_resume); 2159EXPORT_SYMBOL(dquot_resume);
2160 2160
2161int vfs_quota_on_path(struct super_block *sb, int type, int format_id, 2161int dquot_quota_on_path(struct super_block *sb, int type, int format_id,
2162 struct path *path) 2162 struct path *path)
2163{ 2163{
2164 int error = security_quota_on(path->dentry); 2164 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,
2173 DQUOT_LIMITS_ENABLED); 2173 DQUOT_LIMITS_ENABLED);
2174 return error; 2174 return error;
2175} 2175}
2176EXPORT_SYMBOL(vfs_quota_on_path); 2176EXPORT_SYMBOL(dquot_quota_on_path);
2177 2177
2178int vfs_quota_on(struct super_block *sb, int type, int format_id, char *name) 2178int dquot_quota_on(struct super_block *sb, int type, int format_id, char *name)
2179{ 2179{
2180 struct path path; 2180 struct path path;
2181 int error; 2181 int error;
2182 2182
2183 error = kern_path(name, LOOKUP_FOLLOW, &path); 2183 error = kern_path(name, LOOKUP_FOLLOW, &path);
2184 if (!error) { 2184 if (!error) {
2185 error = vfs_quota_on_path(sb, type, format_id, &path); 2185 error = dquot_quota_on_path(sb, type, format_id, &path);
2186 path_put(&path); 2186 path_put(&path);
2187 } 2187 }
2188 return error; 2188 return error;
2189} 2189}
2190EXPORT_SYMBOL(vfs_quota_on); 2190EXPORT_SYMBOL(dquot_quota_on);
2191 2191
2192/* 2192/*
2193 * More powerful function for turning on quotas allowing setting 2193 * More powerful function for turning on quotas allowing setting
2194 * of individual quota flags 2194 * of individual quota flags
2195 */ 2195 */
2196int vfs_quota_enable(struct inode *inode, int type, int format_id, 2196int dquot_enable(struct inode *inode, int type, int format_id,
2197 unsigned int flags) 2197 unsigned int flags)
2198{ 2198{
2199 int ret = 0; 2199 int ret = 0;
2200 struct super_block *sb = inode->i_sb; 2200 struct super_block *sb = inode->i_sb;
@@ -2234,13 +2234,13 @@ out_lock:
2234load_quota: 2234load_quota:
2235 return vfs_load_quota_inode(inode, type, format_id, flags); 2235 return vfs_load_quota_inode(inode, type, format_id, flags);
2236} 2236}
2237EXPORT_SYMBOL(vfs_quota_enable); 2237EXPORT_SYMBOL(dquot_enable);
2238 2238
2239/* 2239/*
2240 * This function is used when filesystem needs to initialize quotas 2240 * This function is used when filesystem needs to initialize quotas
2241 * during mount time. 2241 * during mount time.
2242 */ 2242 */
2243int vfs_quota_on_mount(struct super_block *sb, char *qf_name, 2243int dquot_quota_on_mount(struct super_block *sb, char *qf_name,
2244 int format_id, int type) 2244 int format_id, int type)
2245{ 2245{
2246 struct dentry *dentry; 2246 struct dentry *dentry;
@@ -2266,7 +2266,7 @@ out:
2266 dput(dentry); 2266 dput(dentry);
2267 return error; 2267 return error;
2268} 2268}
2269EXPORT_SYMBOL(vfs_quota_on_mount); 2269EXPORT_SYMBOL(dquot_quota_on_mount);
2270 2270
2271static inline qsize_t qbtos(qsize_t blocks) 2271static inline qsize_t qbtos(qsize_t blocks)
2272{ 2272{
@@ -2301,8 +2301,8 @@ static void do_get_dqblk(struct dquot *dquot, struct fs_disk_quota *di)
2301 spin_unlock(&dq_data_lock); 2301 spin_unlock(&dq_data_lock);
2302} 2302}
2303 2303
2304int vfs_get_dqblk(struct super_block *sb, int type, qid_t id, 2304int dquot_get_dqblk(struct super_block *sb, int type, qid_t id,
2305 struct fs_disk_quota *di) 2305 struct fs_disk_quota *di)
2306{ 2306{
2307 struct dquot *dquot; 2307 struct dquot *dquot;
2308 2308
@@ -2314,7 +2314,7 @@ int vfs_get_dqblk(struct super_block *sb, int type, qid_t id,
2314 2314
2315 return 0; 2315 return 0;
2316} 2316}
2317EXPORT_SYMBOL(vfs_get_dqblk); 2317EXPORT_SYMBOL(dquot_get_dqblk);
2318 2318
2319#define VFS_FS_DQ_MASK \ 2319#define VFS_FS_DQ_MASK \
2320 (FS_DQ_BCOUNT | FS_DQ_BSOFT | FS_DQ_BHARD | \ 2320 (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)
2413 return 0; 2413 return 0;
2414} 2414}
2415 2415
2416int vfs_set_dqblk(struct super_block *sb, int type, qid_t id, 2416int dquot_set_dqblk(struct super_block *sb, int type, qid_t id,
2417 struct fs_disk_quota *di) 2417 struct fs_disk_quota *di)
2418{ 2418{
2419 struct dquot *dquot; 2419 struct dquot *dquot;
@@ -2429,10 +2429,10 @@ int vfs_set_dqblk(struct super_block *sb, int type, qid_t id,
2429out: 2429out:
2430 return rc; 2430 return rc;
2431} 2431}
2432EXPORT_SYMBOL(vfs_set_dqblk); 2432EXPORT_SYMBOL(dquot_set_dqblk);
2433 2433
2434/* Generic routine for getting common part of quota file information */ 2434/* Generic routine for getting common part of quota file information */
2435int vfs_get_dqinfo(struct super_block *sb, int type, struct if_dqinfo *ii) 2435int dquot_get_dqinfo(struct super_block *sb, int type, struct if_dqinfo *ii)
2436{ 2436{
2437 struct mem_dqinfo *mi; 2437 struct mem_dqinfo *mi;
2438 2438
@@ -2451,10 +2451,10 @@ int vfs_get_dqinfo(struct super_block *sb, int type, struct if_dqinfo *ii)
2451 mutex_unlock(&sb_dqopt(sb)->dqonoff_mutex); 2451 mutex_unlock(&sb_dqopt(sb)->dqonoff_mutex);
2452 return 0; 2452 return 0;
2453} 2453}
2454EXPORT_SYMBOL(vfs_get_dqinfo); 2454EXPORT_SYMBOL(dquot_get_dqinfo);
2455 2455
2456/* Generic routine for setting common part of quota file information */ 2456/* Generic routine for setting common part of quota file information */
2457int vfs_set_dqinfo(struct super_block *sb, int type, struct if_dqinfo *ii) 2457int dquot_set_dqinfo(struct super_block *sb, int type, struct if_dqinfo *ii)
2458{ 2458{
2459 struct mem_dqinfo *mi; 2459 struct mem_dqinfo *mi;
2460 int err = 0; 2460 int err = 0;
@@ -2481,18 +2481,18 @@ out:
2481 mutex_unlock(&sb_dqopt(sb)->dqonoff_mutex); 2481 mutex_unlock(&sb_dqopt(sb)->dqonoff_mutex);
2482 return err; 2482 return err;
2483} 2483}
2484EXPORT_SYMBOL(vfs_set_dqinfo); 2484EXPORT_SYMBOL(dquot_set_dqinfo);
2485 2485
2486const struct quotactl_ops vfs_quotactl_ops = { 2486const struct quotactl_ops dquot_quotactl_ops = {
2487 .quota_on = vfs_quota_on, 2487 .quota_on = dquot_quota_on,
2488 .quota_off = vfs_quota_off, 2488 .quota_off = dquot_quota_off,
2489 .quota_sync = vfs_quota_sync, 2489 .quota_sync = dquot_quota_sync,
2490 .get_info = vfs_get_dqinfo, 2490 .get_info = dquot_get_dqinfo,
2491 .set_info = vfs_set_dqinfo, 2491 .set_info = dquot_set_dqinfo,
2492 .get_dqblk = vfs_get_dqblk, 2492 .get_dqblk = dquot_get_dqblk,
2493 .set_dqblk = vfs_set_dqblk 2493 .set_dqblk = dquot_set_dqblk
2494}; 2494};
2495EXPORT_SYMBOL(vfs_quotactl_ops); 2495EXPORT_SYMBOL(dquot_quotactl_ops);
2496 2496
2497static int do_proc_dqstats(struct ctl_table *table, int write, 2497static int do_proc_dqstats(struct ctl_table *table, int write,
2498 void __user *buffer, size_t *lenp, loff_t *ppos) 2498 void __user *buffer, size_t *lenp, loff_t *ppos)