summaryrefslogtreecommitdiff
path: root/fs/gfs2
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2012-02-27 18:08:46 +0100
committerSteven Rostedt <rostedt@goodmis.org>2012-03-06 11:11:44 -0500
commit8b9904f368a22479d263b1b36ee241f8abe976c1 (patch)
tree30888a1de4fc0c15038e8be6506a20e06a569680 /fs/gfs2
parente558648032a88644e8a9ed3bc26497f6f9b7797c (diff)
downloadlinux-rt-8b9904f368a22479d263b1b36ee241f8abe976c1.tar.gz
fs: dentry use seqlock
Replace the open coded seqlock with a real seqlock, so RT can handle it. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: stable-rt@vger.kernel.org Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'fs/gfs2')
-rw-r--r--fs/gfs2/export.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/gfs2/export.c b/fs/gfs2/export.c
index fe9945f2ff72..dcc2f5a03ab8 100644
--- a/fs/gfs2/export.c
+++ b/fs/gfs2/export.c
@@ -53,11 +53,11 @@ static int gfs2_encode_fh(struct dentry *dentry, __u32 *p, int *len,
if (!connectable || inode == sb->s_root->d_inode)
return *len;
- spin_lock(&dentry->d_lock);
+ seq_spin_lock(&dentry->d_lock);
inode = dentry->d_parent->d_inode;
ip = GFS2_I(inode);
igrab(inode);
- spin_unlock(&dentry->d_lock);
+ seq_spin_unlock(&dentry->d_lock);
fh[4] = cpu_to_be32(ip->i_no_formal_ino >> 32);
fh[5] = cpu_to_be32(ip->i_no_formal_ino & 0xFFFFFFFF);