diff options
Diffstat (limited to 'include/linux/quotaops.h')
-rw-r--r-- | include/linux/quotaops.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/quotaops.h b/include/linux/quotaops.h index 14ad1b7ca..3506c1ce1 100644 --- a/include/linux/quotaops.h +++ b/include/linux/quotaops.h @@ -14,6 +14,8 @@ #if defined(CONFIG_QUOTA) +#include <linux/smp_lock.h> + /* * declaration of quota_function calls in kernel. */ @@ -94,8 +96,10 @@ extern __inline__ int DQUOT_TRANSFER(struct dentry *dentry, struct iattr *iattr) int error = -EDQUOT; if (dentry->d_inode->i_sb->dq_op) { + lock_kernel(); dentry->d_inode->i_sb->dq_op->initialize(dentry->d_inode, -1); error = dentry->d_inode->i_sb->dq_op->transfer(dentry, iattr); + unlock_kernel(); } else { error = notify_change(dentry, iattr); } |