Message ID | 20091103214845.9660895d.akpm@linux-foundation.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
--- a/fs/attr.c~notify_change-callers-must-hold-i_mutex +++ a/fs/attr.c @@ -155,6 +155,8 @@ int notify_change(struct dentry * dentry return -EPERM; } + WARN_ON_ONCE(!mutex_is_locked(&inode->i_mutex)); + now = current_fs_time(inode->i_sb); attr->ia_ctime = now;