diff options
Diffstat (limited to 'fs/namei.c')
-rw-r--r-- | fs/namei.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/fs/namei.c b/fs/namei.c index 199317642ad6..1928197b3874 100644 --- a/fs/namei.c +++ b/fs/namei.c | |||
@@ -1473,7 +1473,7 @@ int vfs_create(struct inode *dir, struct dentry *dentry, int mode, | |||
1473 | error = security_inode_create(dir, dentry, mode); | 1473 | error = security_inode_create(dir, dentry, mode); |
1474 | if (error) | 1474 | if (error) |
1475 | return error; | 1475 | return error; |
1476 | DQUOT_INIT(dir); | 1476 | vfs_dq_init(dir); |
1477 | error = dir->i_op->create(dir, dentry, mode, nd); | 1477 | error = dir->i_op->create(dir, dentry, mode, nd); |
1478 | if (!error) | 1478 | if (!error) |
1479 | fsnotify_create(dir, dentry); | 1479 | fsnotify_create(dir, dentry); |
@@ -1552,7 +1552,7 @@ int may_open(struct path *path, int acc_mode, int flag) | |||
1552 | error = security_path_truncate(path, 0, | 1552 | error = security_path_truncate(path, 0, |
1553 | ATTR_MTIME|ATTR_CTIME|ATTR_OPEN); | 1553 | ATTR_MTIME|ATTR_CTIME|ATTR_OPEN); |
1554 | if (!error) { | 1554 | if (!error) { |
1555 | DQUOT_INIT(inode); | 1555 | vfs_dq_init(inode); |
1556 | 1556 | ||
1557 | error = do_truncate(dentry, 0, | 1557 | error = do_truncate(dentry, 0, |
1558 | ATTR_MTIME|ATTR_CTIME|ATTR_OPEN, | 1558 | ATTR_MTIME|ATTR_CTIME|ATTR_OPEN, |
@@ -1563,7 +1563,7 @@ int may_open(struct path *path, int acc_mode, int flag) | |||
1563 | return error; | 1563 | return error; |
1564 | } else | 1564 | } else |
1565 | if (flag & FMODE_WRITE) | 1565 | if (flag & FMODE_WRITE) |
1566 | DQUOT_INIT(inode); | 1566 | vfs_dq_init(inode); |
1567 | 1567 | ||
1568 | return 0; | 1568 | return 0; |
1569 | } | 1569 | } |
@@ -1946,7 +1946,7 @@ int vfs_mknod(struct inode *dir, struct dentry *dentry, int mode, dev_t dev) | |||
1946 | if (error) | 1946 | if (error) |
1947 | return error; | 1947 | return error; |
1948 | 1948 | ||
1949 | DQUOT_INIT(dir); | 1949 | vfs_dq_init(dir); |
1950 | error = dir->i_op->mknod(dir, dentry, mode, dev); | 1950 | error = dir->i_op->mknod(dir, dentry, mode, dev); |
1951 | if (!error) | 1951 | if (!error) |
1952 | fsnotify_create(dir, dentry); | 1952 | fsnotify_create(dir, dentry); |
@@ -2045,7 +2045,7 @@ int vfs_mkdir(struct inode *dir, struct dentry *dentry, int mode) | |||
2045 | if (error) | 2045 | if (error) |
2046 | return error; | 2046 | return error; |
2047 | 2047 | ||
2048 | DQUOT_INIT(dir); | 2048 | vfs_dq_init(dir); |
2049 | error = dir->i_op->mkdir(dir, dentry, mode); | 2049 | error = dir->i_op->mkdir(dir, dentry, mode); |
2050 | if (!error) | 2050 | if (!error) |
2051 | fsnotify_mkdir(dir, dentry); | 2051 | fsnotify_mkdir(dir, dentry); |
@@ -2131,7 +2131,7 @@ int vfs_rmdir(struct inode *dir, struct dentry *dentry) | |||
2131 | if (!dir->i_op->rmdir) | 2131 | if (!dir->i_op->rmdir) |
2132 | return -EPERM; | 2132 | return -EPERM; |
2133 | 2133 | ||
2134 | DQUOT_INIT(dir); | 2134 | vfs_dq_init(dir); |
2135 | 2135 | ||
2136 | mutex_lock(&dentry->d_inode->i_mutex); | 2136 | mutex_lock(&dentry->d_inode->i_mutex); |
2137 | dentry_unhash(dentry); | 2137 | dentry_unhash(dentry); |
@@ -2218,7 +2218,7 @@ int vfs_unlink(struct inode *dir, struct dentry *dentry) | |||
2218 | if (!dir->i_op->unlink) | 2218 | if (!dir->i_op->unlink) |
2219 | return -EPERM; | 2219 | return -EPERM; |
2220 | 2220 | ||
2221 | DQUOT_INIT(dir); | 2221 | vfs_dq_init(dir); |
2222 | 2222 | ||
2223 | mutex_lock(&dentry->d_inode->i_mutex); | 2223 | mutex_lock(&dentry->d_inode->i_mutex); |
2224 | if (d_mountpoint(dentry)) | 2224 | if (d_mountpoint(dentry)) |
@@ -2329,7 +2329,7 @@ int vfs_symlink(struct inode *dir, struct dentry *dentry, const char *oldname) | |||
2329 | if (error) | 2329 | if (error) |
2330 | return error; | 2330 | return error; |
2331 | 2331 | ||
2332 | DQUOT_INIT(dir); | 2332 | vfs_dq_init(dir); |
2333 | error = dir->i_op->symlink(dir, dentry, oldname); | 2333 | error = dir->i_op->symlink(dir, dentry, oldname); |
2334 | if (!error) | 2334 | if (!error) |
2335 | fsnotify_create(dir, dentry); | 2335 | fsnotify_create(dir, dentry); |
@@ -2413,7 +2413,7 @@ int vfs_link(struct dentry *old_dentry, struct inode *dir, struct dentry *new_de | |||
2413 | return error; | 2413 | return error; |
2414 | 2414 | ||
2415 | mutex_lock(&inode->i_mutex); | 2415 | mutex_lock(&inode->i_mutex); |
2416 | DQUOT_INIT(dir); | 2416 | vfs_dq_init(dir); |
2417 | error = dir->i_op->link(old_dentry, dir, new_dentry); | 2417 | error = dir->i_op->link(old_dentry, dir, new_dentry); |
2418 | mutex_unlock(&inode->i_mutex); | 2418 | mutex_unlock(&inode->i_mutex); |
2419 | if (!error) | 2419 | if (!error) |
@@ -2612,8 +2612,8 @@ int vfs_rename(struct inode *old_dir, struct dentry *old_dentry, | |||
2612 | if (!old_dir->i_op->rename) | 2612 | if (!old_dir->i_op->rename) |
2613 | return -EPERM; | 2613 | return -EPERM; |
2614 | 2614 | ||
2615 | DQUOT_INIT(old_dir); | 2615 | vfs_dq_init(old_dir); |
2616 | DQUOT_INIT(new_dir); | 2616 | vfs_dq_init(new_dir); |
2617 | 2617 | ||
2618 | old_name = fsnotify_oldname_init(old_dentry->d_name.name); | 2618 | old_name = fsnotify_oldname_init(old_dentry->d_name.name); |
2619 | 2619 | ||