| Submitter | Andrew Morton |
|---|---|
| Date | 2009-11-04 05:48:45 |
| Message ID | <20091103214845.9660895d.akpm@linux-foundation.org> |
| Download | mbox | patch |
| Permalink | /patch/57463/ |
| State | New |
| Headers | show |
Comments
Patch
--- 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;