>From c147d9ae5f9511f722a97179cd9f661e7e10417e Mon Sep 17 00:00:00 2001 From: Dmitry Monakhov Date: Sun, 31 Mar 2013 17:35:38 +0400 Subject: [PATCH] patch ext4_symlink.patch Signed-off-by: Dmitry Monakhov --- fs/namei.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/fs/namei.c b/fs/namei.c index 57ae9c8..9dcdb27 100644 --- a/fs/namei.c +++ b/fs/namei.c @@ -4034,6 +4034,7 @@ int __page_symlink(struct inode *inode, const char *symname, int len, int nofs) if (nofs) flags |= AOP_FLAG_NOFS; + mutex_lock(&inode->i_mutex); retry: err = pagecache_write_begin(NULL, mapping, 0, len-1, flags, &page, &fsdata); @@ -4052,8 +4053,10 @@ retry: goto retry; mark_inode_dirty(inode); + mutex_unlock(&inode->i_mutex); return 0; fail: + mutex_unlock(&inode->i_mutex); return err; } -- 1.7.1