diff options
author | Jan Kara <jack@suse.cz> | 2009-01-26 10:45:12 -0500 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2009-03-25 21:18:35 -0400 |
commit | 9e3509e273ecc2a5f937c493f9bb71e5e41ac2e5 (patch) | |
tree | a7d9704e891f14b7196a275543b7f9c90f348b82 /fs | |
parent | d26ac1a8128f6e1fc467f145acaa9f9bf9e16b75 (diff) |
vfs: Use lowercase names of quota functions
Use lowercase names of quota functions instead of old uppercase ones.
Signed-off-by: Jan Kara <jack@suse.cz>
CC: Alexander Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/attr.c | 3 | ||||
-rw-r--r-- | fs/inode.c | 4 | ||||
-rw-r--r-- | fs/namei.c | 22 | ||||
-rw-r--r-- | fs/open.c | 2 | ||||
-rw-r--r-- | fs/super.c | 8 | ||||
-rw-r--r-- | fs/sync.c | 2 |
6 files changed, 21 insertions, 20 deletions
@@ -173,7 +173,8 @@ int notify_change(struct dentry * dentry, struct iattr * attr) | |||
173 | if (!error) { | 173 | if (!error) { |
174 | if ((ia_valid & ATTR_UID && attr->ia_uid != inode->i_uid) || | 174 | if ((ia_valid & ATTR_UID && attr->ia_uid != inode->i_uid) || |
175 | (ia_valid & ATTR_GID && attr->ia_gid != inode->i_gid)) | 175 | (ia_valid & ATTR_GID && attr->ia_gid != inode->i_gid)) |
176 | error = DQUOT_TRANSFER(inode, attr) ? -EDQUOT : 0; | 176 | error = vfs_dq_transfer(inode, attr) ? |
177 | -EDQUOT : 0; | ||
177 | if (!error) | 178 | if (!error) |
178 | error = inode_setattr(inode, attr); | 179 | error = inode_setattr(inode, attr); |
179 | } | 180 | } |
diff --git a/fs/inode.c b/fs/inode.c index 826fb0b9d1c3..bb81bd515f85 100644 --- a/fs/inode.c +++ b/fs/inode.c | |||
@@ -284,7 +284,7 @@ void clear_inode(struct inode *inode) | |||
284 | BUG_ON(!(inode->i_state & I_FREEING)); | 284 | BUG_ON(!(inode->i_state & I_FREEING)); |
285 | BUG_ON(inode->i_state & I_CLEAR); | 285 | BUG_ON(inode->i_state & I_CLEAR); |
286 | inode_sync_wait(inode); | 286 | inode_sync_wait(inode); |
287 | DQUOT_DROP(inode); | 287 | vfs_dq_drop(inode); |
288 | if (inode->i_sb->s_op->clear_inode) | 288 | if (inode->i_sb->s_op->clear_inode) |
289 | inode->i_sb->s_op->clear_inode(inode); | 289 | inode->i_sb->s_op->clear_inode(inode); |
290 | if (S_ISBLK(inode->i_mode) && inode->i_bdev) | 290 | if (S_ISBLK(inode->i_mode) && inode->i_bdev) |
@@ -1158,7 +1158,7 @@ void generic_delete_inode(struct inode *inode) | |||
1158 | if (op->delete_inode) { | 1158 | if (op->delete_inode) { |
1159 | void (*delete)(struct inode *) = op->delete_inode; | 1159 | void (*delete)(struct inode *) = op->delete_inode; |
1160 | if (!is_bad_inode(inode)) | 1160 | if (!is_bad_inode(inode)) |
1161 | DQUOT_INIT(inode); | 1161 | vfs_dq_init(inode); |
1162 | /* Filesystems implementing their own | 1162 | /* Filesystems implementing their own |
1163 | * s_op->delete_inode are required to call | 1163 | * s_op->delete_inode are required to call |
1164 | * truncate_inode_pages and clear_inode() | 1164 | * truncate_inode_pages and clear_inode() |
diff --git a/fs/namei.c b/fs/namei.c index bbc15c237558..8937f4e78178 100644 --- a/fs/namei.c +++ b/fs/namei.c | |||
@@ -1470,7 +1470,7 @@ int vfs_create(struct inode *dir, struct dentry *dentry, int mode, | |||
1470 | error = security_inode_create(dir, dentry, mode); | 1470 | error = security_inode_create(dir, dentry, mode); |
1471 | if (error) | 1471 | if (error) |
1472 | return error; | 1472 | return error; |
1473 | DQUOT_INIT(dir); | 1473 | vfs_dq_init(dir); |
1474 | error = dir->i_op->create(dir, dentry, mode, nd); | 1474 | error = dir->i_op->create(dir, dentry, mode, nd); |
1475 | if (!error) | 1475 | if (!error) |
1476 | fsnotify_create(dir, dentry); | 1476 | fsnotify_create(dir, dentry); |
@@ -1544,7 +1544,7 @@ int may_open(struct path *path, int acc_mode, int flag) | |||
1544 | error = security_path_truncate(path, 0, | 1544 | error = security_path_truncate(path, 0, |
1545 | ATTR_MTIME|ATTR_CTIME|ATTR_OPEN); | 1545 | ATTR_MTIME|ATTR_CTIME|ATTR_OPEN); |
1546 | if (!error) { | 1546 | if (!error) { |
1547 | DQUOT_INIT(inode); | 1547 | vfs_dq_init(inode); |
1548 | 1548 | ||
1549 | error = do_truncate(dentry, 0, | 1549 | error = do_truncate(dentry, 0, |
1550 | ATTR_MTIME|ATTR_CTIME|ATTR_OPEN, | 1550 | ATTR_MTIME|ATTR_CTIME|ATTR_OPEN, |
@@ -1555,7 +1555,7 @@ int may_open(struct path *path, int acc_mode, int flag) | |||
1555 | return error; | 1555 | return error; |
1556 | } else | 1556 | } else |
1557 | if (flag & FMODE_WRITE) | 1557 | if (flag & FMODE_WRITE) |
1558 | DQUOT_INIT(inode); | 1558 | vfs_dq_init(inode); |
1559 | 1559 | ||
1560 | return 0; | 1560 | return 0; |
1561 | } | 1561 | } |
@@ -1938,7 +1938,7 @@ int vfs_mknod(struct inode *dir, struct dentry *dentry, int mode, dev_t dev) | |||
1938 | if (error) | 1938 | if (error) |
1939 | return error; | 1939 | return error; |
1940 | 1940 | ||
1941 | DQUOT_INIT(dir); | 1941 | vfs_dq_init(dir); |
1942 | error = dir->i_op->mknod(dir, dentry, mode, dev); | 1942 | error = dir->i_op->mknod(dir, dentry, mode, dev); |
1943 | if (!error) | 1943 | if (!error) |
1944 | fsnotify_create(dir, dentry); | 1944 | fsnotify_create(dir, dentry); |
@@ -2037,7 +2037,7 @@ int vfs_mkdir(struct inode *dir, struct dentry *dentry, int mode) | |||
2037 | if (error) | 2037 | if (error) |
2038 | return error; | 2038 | return error; |
2039 | 2039 | ||
2040 | DQUOT_INIT(dir); | 2040 | vfs_dq_init(dir); |
2041 | error = dir->i_op->mkdir(dir, dentry, mode); | 2041 | error = dir->i_op->mkdir(dir, dentry, mode); |
2042 | if (!error) | 2042 | if (!error) |
2043 | fsnotify_mkdir(dir, dentry); | 2043 | fsnotify_mkdir(dir, dentry); |
@@ -2123,7 +2123,7 @@ int vfs_rmdir(struct inode *dir, struct dentry *dentry) | |||
2123 | if (!dir->i_op->rmdir) | 2123 | if (!dir->i_op->rmdir) |
2124 | return -EPERM; | 2124 | return -EPERM; |
2125 | 2125 | ||
2126 | DQUOT_INIT(dir); | 2126 | vfs_dq_init(dir); |
2127 | 2127 | ||
2128 | mutex_lock(&dentry->d_inode->i_mutex); | 2128 | mutex_lock(&dentry->d_inode->i_mutex); |
2129 | dentry_unhash(dentry); | 2129 | dentry_unhash(dentry); |
@@ -2210,7 +2210,7 @@ int vfs_unlink(struct inode *dir, struct dentry *dentry) | |||
2210 | if (!dir->i_op->unlink) | 2210 | if (!dir->i_op->unlink) |
2211 | return -EPERM; | 2211 | return -EPERM; |
2212 | 2212 | ||
2213 | DQUOT_INIT(dir); | 2213 | vfs_dq_init(dir); |
2214 | 2214 | ||
2215 | mutex_lock(&dentry->d_inode->i_mutex); | 2215 | mutex_lock(&dentry->d_inode->i_mutex); |
2216 | if (d_mountpoint(dentry)) | 2216 | if (d_mountpoint(dentry)) |
@@ -2321,7 +2321,7 @@ int vfs_symlink(struct inode *dir, struct dentry *dentry, const char *oldname) | |||
2321 | if (error) | 2321 | if (error) |
2322 | return error; | 2322 | return error; |
2323 | 2323 | ||
2324 | DQUOT_INIT(dir); | 2324 | vfs_dq_init(dir); |
2325 | error = dir->i_op->symlink(dir, dentry, oldname); | 2325 | error = dir->i_op->symlink(dir, dentry, oldname); |
2326 | if (!error) | 2326 | if (!error) |
2327 | fsnotify_create(dir, dentry); | 2327 | fsnotify_create(dir, dentry); |
@@ -2405,7 +2405,7 @@ int vfs_link(struct dentry *old_dentry, struct inode *dir, struct dentry *new_de | |||
2405 | return error; | 2405 | return error; |
2406 | 2406 | ||
2407 | mutex_lock(&inode->i_mutex); | 2407 | mutex_lock(&inode->i_mutex); |
2408 | DQUOT_INIT(dir); | 2408 | vfs_dq_init(dir); |
2409 | error = dir->i_op->link(old_dentry, dir, new_dentry); | 2409 | error = dir->i_op->link(old_dentry, dir, new_dentry); |
2410 | mutex_unlock(&inode->i_mutex); | 2410 | mutex_unlock(&inode->i_mutex); |
2411 | if (!error) | 2411 | if (!error) |
@@ -2604,8 +2604,8 @@ int vfs_rename(struct inode *old_dir, struct dentry *old_dentry, | |||
2604 | if (!old_dir->i_op->rename) | 2604 | if (!old_dir->i_op->rename) |
2605 | return -EPERM; | 2605 | return -EPERM; |
2606 | 2606 | ||
2607 | DQUOT_INIT(old_dir); | 2607 | vfs_dq_init(old_dir); |
2608 | DQUOT_INIT(new_dir); | 2608 | vfs_dq_init(new_dir); |
2609 | 2609 | ||
2610 | old_name = fsnotify_oldname_init(old_dentry->d_name.name); | 2610 | old_name = fsnotify_oldname_init(old_dentry->d_name.name); |
2611 | 2611 | ||
@@ -273,7 +273,7 @@ static long do_sys_truncate(const char __user *pathname, loff_t length) | |||
273 | if (!error) | 273 | if (!error) |
274 | error = security_path_truncate(&path, length, 0); | 274 | error = security_path_truncate(&path, length, 0); |
275 | if (!error) { | 275 | if (!error) { |
276 | DQUOT_INIT(inode); | 276 | vfs_dq_init(inode); |
277 | error = do_truncate(path.dentry, length, 0, NULL); | 277 | error = do_truncate(path.dentry, length, 0, NULL); |
278 | } | 278 | } |
279 | 279 | ||
diff --git a/fs/super.c b/fs/super.c index 6ce501447ada..0f9d17f2c754 100644 --- a/fs/super.c +++ b/fs/super.c | |||
@@ -197,7 +197,7 @@ void deactivate_super(struct super_block *s) | |||
197 | if (atomic_dec_and_lock(&s->s_active, &sb_lock)) { | 197 | if (atomic_dec_and_lock(&s->s_active, &sb_lock)) { |
198 | s->s_count -= S_BIAS-1; | 198 | s->s_count -= S_BIAS-1; |
199 | spin_unlock(&sb_lock); | 199 | spin_unlock(&sb_lock); |
200 | DQUOT_OFF(s, 0); | 200 | vfs_dq_off(s, 0); |
201 | down_write(&s->s_umount); | 201 | down_write(&s->s_umount); |
202 | fs->kill_sb(s); | 202 | fs->kill_sb(s); |
203 | put_filesystem(fs); | 203 | put_filesystem(fs); |
@@ -266,7 +266,7 @@ EXPORT_SYMBOL(unlock_super); | |||
266 | void __fsync_super(struct super_block *sb) | 266 | void __fsync_super(struct super_block *sb) |
267 | { | 267 | { |
268 | sync_inodes_sb(sb, 0); | 268 | sync_inodes_sb(sb, 0); |
269 | DQUOT_SYNC(sb); | 269 | vfs_dq_sync(sb); |
270 | lock_super(sb); | 270 | lock_super(sb); |
271 | if (sb->s_dirt && sb->s_op->write_super) | 271 | if (sb->s_dirt && sb->s_op->write_super) |
272 | sb->s_op->write_super(sb); | 272 | sb->s_op->write_super(sb); |
@@ -655,7 +655,7 @@ int do_remount_sb(struct super_block *sb, int flags, void *data, int force) | |||
655 | mark_files_ro(sb); | 655 | mark_files_ro(sb); |
656 | else if (!fs_may_remount_ro(sb)) | 656 | else if (!fs_may_remount_ro(sb)) |
657 | return -EBUSY; | 657 | return -EBUSY; |
658 | retval = DQUOT_OFF(sb, 1); | 658 | retval = vfs_dq_off(sb, 1); |
659 | if (retval < 0 && retval != -ENOSYS) | 659 | if (retval < 0 && retval != -ENOSYS) |
660 | return -EBUSY; | 660 | return -EBUSY; |
661 | } | 661 | } |
@@ -670,7 +670,7 @@ int do_remount_sb(struct super_block *sb, int flags, void *data, int force) | |||
670 | } | 670 | } |
671 | sb->s_flags = (sb->s_flags & ~MS_RMT_MASK) | (flags & MS_RMT_MASK); | 671 | sb->s_flags = (sb->s_flags & ~MS_RMT_MASK) | (flags & MS_RMT_MASK); |
672 | if (remount_rw) | 672 | if (remount_rw) |
673 | DQUOT_ON_REMOUNT(sb); | 673 | vfs_dq_quota_on_remount(sb); |
674 | return 0; | 674 | return 0; |
675 | } | 675 | } |
676 | 676 | ||
@@ -25,7 +25,7 @@ static void do_sync(unsigned long wait) | |||
25 | { | 25 | { |
26 | wakeup_pdflush(0); | 26 | wakeup_pdflush(0); |
27 | sync_inodes(0); /* All mappings, inodes and their blockdevs */ | 27 | sync_inodes(0); /* All mappings, inodes and their blockdevs */ |
28 | DQUOT_SYNC(NULL); | 28 | vfs_dq_sync(NULL); |
29 | sync_supers(); /* Write the superblocks */ | 29 | sync_supers(); /* Write the superblocks */ |
30 | sync_filesystems(0); /* Start syncing the filesystems */ | 30 | sync_filesystems(0); /* Start syncing the filesystems */ |
31 | sync_filesystems(wait); /* Waitingly sync the filesystems */ | 31 | sync_filesystems(wait); /* Waitingly sync the filesystems */ |