diff options
-rw-r--r-- | fs/jfs/jfs_imap.c | 1 | ||||
-rw-r--r-- | fs/jfs/super.c | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/fs/jfs/jfs_imap.c b/fs/jfs/jfs_imap.c index 346057218edc..0fc30407f039 100644 --- a/fs/jfs/jfs_imap.c +++ b/fs/jfs/jfs_imap.c | |||
@@ -2571,6 +2571,7 @@ diNewIAG(struct inomap * imap, int *iagnop, int agno, struct metapage ** mpp) | |||
2571 | 2571 | ||
2572 | txAbort(tid, 0); | 2572 | txAbort(tid, 0); |
2573 | txEnd(tid); | 2573 | txEnd(tid); |
2574 | mutex_unlock(&JFS_IP(ipimap)->commit_mutex); | ||
2574 | 2575 | ||
2575 | /* release the inode map lock */ | 2576 | /* release the inode map lock */ |
2576 | IWRITE_UNLOCK(ipimap); | 2577 | IWRITE_UNLOCK(ipimap); |
diff --git a/fs/jfs/super.c b/fs/jfs/super.c index 6f21adf9479a..d9b0e92b3602 100644 --- a/fs/jfs/super.c +++ b/fs/jfs/super.c | |||
@@ -720,8 +720,10 @@ static ssize_t jfs_quota_write(struct super_block *sb, int type, | |||
720 | blk++; | 720 | blk++; |
721 | } | 721 | } |
722 | out: | 722 | out: |
723 | if (len == towrite) | 723 | if (len == towrite) { |
724 | mutex_unlock(&inode->i_mutex); | ||
724 | return err; | 725 | return err; |
726 | } | ||
725 | if (inode->i_size < off+len-towrite) | 727 | if (inode->i_size < off+len-towrite) |
726 | i_size_write(inode, off+len-towrite); | 728 | i_size_write(inode, off+len-towrite); |
727 | inode->i_version++; | 729 | inode->i_version++; |