From 5769cdd7f046963507601ecda5828de736f89306 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Fri, 25 Sep 2009 22:01:10 +0200 Subject: [PATCH] mm-only debug patch... Cc: Michael Halcrow Cc: Miklos Szeredi Signed-off-by: Andrew Morton --- fs/attr.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/attr.c b/fs/attr.c index 96d394bdadd..370642a99db 100644 --- a/fs/attr.c +++ b/fs/attr.c @@ -155,6 +155,8 @@ int notify_change(struct dentry * dentry, struct iattr * attr) return -EPERM; } + WARN_ON_ONCE(!mutex_is_locked(&inode->i_mutex)); + now = current_fs_time(inode->i_sb); attr->ia_ctime = now; -- 2.11.4.GIT