diff options
-rw-r--r-- | fs/ufs/super.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/ufs/super.c b/fs/ufs/super.c index 54828ebcf1ba..2ba11a9aa995 100644 --- a/fs/ufs/super.c +++ b/fs/ufs/super.c | |||
@@ -1296,8 +1296,10 @@ static ssize_t ufs_quota_write(struct super_block *sb, int type, | |||
1296 | blk++; | 1296 | blk++; |
1297 | } | 1297 | } |
1298 | out: | 1298 | out: |
1299 | if (len == towrite) | 1299 | if (len == towrite) { |
1300 | up(&inode->i_sem); | ||
1300 | return err; | 1301 | return err; |
1302 | } | ||
1301 | if (inode->i_size < off+len-towrite) | 1303 | if (inode->i_size < off+len-towrite) |
1302 | i_size_write(inode, off+len-towrite); | 1304 | i_size_write(inode, off+len-towrite); |
1303 | inode->i_version++; | 1305 | inode->i_version++; |