|
@@ -2203,7 +2203,7 @@ static ssize_t reiserfs_quota_write(struct super_block *sb, int type,
|
|
size_t towrite = len;
|
|
size_t towrite = len;
|
|
struct buffer_head tmp_bh, *bh;
|
|
struct buffer_head tmp_bh, *bh;
|
|
|
|
|
|
- mutex_lock(&inode->i_mutex);
|
|
|
|
|
|
+ mutex_lock_nested(&inode->i_mutex, I_MUTEX_QUOTA);
|
|
while (towrite > 0) {
|
|
while (towrite > 0) {
|
|
tocopy = sb->s_blocksize - offset < towrite ?
|
|
tocopy = sb->s_blocksize - offset < towrite ?
|
|
sb->s_blocksize - offset : towrite;
|
|
sb->s_blocksize - offset : towrite;
|