aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2016-01-23 15:24:56 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2016-01-23 15:24:56 -0500
commitcc673757e24d018d64ff8038e28835db1e2902c4 (patch)
tree6eab3dab15725cda04dafabe9a8440697dca26cc /fs/xfs
parentfa7d9a1d286e6bab49ffa59cbd3c8b394ce54339 (diff)
parente62e560fc8b65ef5debc9041a792d18a8f98b2ca (diff)
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
Pull final vfs updates from Al Viro: - The ->i_mutex wrappers (with small prereq in lustre) - a fix for too early freeing of symlink bodies on shmem (they need to be RCU-delayed) (-stable fodder) - followup to dedupe stuff merged this cycle * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs: vfs: abort dedupe loop if fatal signals are pending make sure that freeing shmem fast symlinks is RCU-delayed wrappers for ->i_mutex access lustre: remove unused declaration
Diffstat (limited to 'fs/xfs')
-rw-r--r--fs/xfs/xfs_file.c6
-rw-r--r--fs/xfs/xfs_pnfs.c4
2 files changed, 5 insertions, 5 deletions
diff --git a/fs/xfs/xfs_file.c b/fs/xfs/xfs_file.c
index 55e16e2402a7..52883ac3cf84 100644
--- a/fs/xfs/xfs_file.c
+++ b/fs/xfs/xfs_file.c
@@ -55,7 +55,7 @@ xfs_rw_ilock(
55 int type) 55 int type)
56{ 56{
57 if (type & XFS_IOLOCK_EXCL) 57 if (type & XFS_IOLOCK_EXCL)
58 mutex_lock(&VFS_I(ip)->i_mutex); 58 inode_lock(VFS_I(ip));
59 xfs_ilock(ip, type); 59 xfs_ilock(ip, type);
60} 60}
61 61
@@ -66,7 +66,7 @@ xfs_rw_iunlock(
66{ 66{
67 xfs_iunlock(ip, type); 67 xfs_iunlock(ip, type);
68 if (type & XFS_IOLOCK_EXCL) 68 if (type & XFS_IOLOCK_EXCL)
69 mutex_unlock(&VFS_I(ip)->i_mutex); 69 inode_unlock(VFS_I(ip));
70} 70}
71 71
72static inline void 72static inline void
@@ -76,7 +76,7 @@ xfs_rw_ilock_demote(
76{ 76{
77 xfs_ilock_demote(ip, type); 77 xfs_ilock_demote(ip, type);
78 if (type & XFS_IOLOCK_EXCL) 78 if (type & XFS_IOLOCK_EXCL)
79 mutex_unlock(&VFS_I(ip)->i_mutex); 79 inode_unlock(VFS_I(ip));
80} 80}
81 81
82/* 82/*
diff --git a/fs/xfs/xfs_pnfs.c b/fs/xfs/xfs_pnfs.c
index dc6221942b85..ade236e90bb3 100644
--- a/fs/xfs/xfs_pnfs.c
+++ b/fs/xfs/xfs_pnfs.c
@@ -42,11 +42,11 @@ xfs_break_layouts(
42 while ((error = break_layout(inode, false) == -EWOULDBLOCK)) { 42 while ((error = break_layout(inode, false) == -EWOULDBLOCK)) {
43 xfs_iunlock(ip, *iolock); 43 xfs_iunlock(ip, *iolock);
44 if (with_imutex && (*iolock & XFS_IOLOCK_EXCL)) 44 if (with_imutex && (*iolock & XFS_IOLOCK_EXCL))
45 mutex_unlock(&inode->i_mutex); 45 inode_unlock(inode);
46 error = break_layout(inode, true); 46 error = break_layout(inode, true);
47 *iolock = XFS_IOLOCK_EXCL; 47 *iolock = XFS_IOLOCK_EXCL;
48 if (with_imutex) 48 if (with_imutex)
49 mutex_lock(&inode->i_mutex); 49 inode_lock(inode);
50 xfs_ilock(ip, *iolock); 50 xfs_ilock(ip, *iolock);
51 } 51 }
52 52