projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8292d88
)
xfs: unlock the inode before log force in xfs_change_file_space
author
Christoph Hellwig
<hch@infradead.org>
Sun, 18 Sep 2011 20:47:51 +0000
(20:47 +0000)
committer
Alex Elder
<aelder@sgi.com>
Wed, 12 Oct 2011 02:15:08 +0000
(21:15 -0500)
Let the transaction commit unlock the inode before it potentially causes
a synchronous log force.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Alex Elder <aelder@sgi.com>
fs/xfs/xfs_vnodeops.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/xfs/xfs_vnodeops.c
b/fs/xfs/xfs_vnodeops.c
index f47ecee8d437dc14a7f7dc18eb154b792e256f00..c9c8e8230b21ce79cad6aaa574534a8571d1dbcd 100644
(file)
--- a/
fs/xfs/xfs_vnodeops.c
+++ b/
fs/xfs/xfs_vnodeops.c
@@
-2349,8
+2349,7
@@
xfs_change_file_space(
}
xfs_ilock(ip, XFS_ILOCK_EXCL);
-
- xfs_trans_ijoin(tp, ip);
+ xfs_trans_ijoin_ref(tp, ip, XFS_ILOCK_EXCL);
if ((attr_flags & XFS_ATTR_DMI) == 0) {
ip->i_d.di_mode &= ~S_ISUID;
@@
-2375,10
+2374,5
@@
xfs_change_file_space(
xfs_trans_log_inode(tp, ip, XFS_ILOG_CORE);
if (attr_flags & XFS_ATTR_SYNC)
xfs_trans_set_sync(tp);
-
- error = xfs_trans_commit(tp, 0);
-
- xfs_iunlock(ip, XFS_ILOCK_EXCL);
-
- return error;
+ return xfs_trans_commit(tp, 0);
}