Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 312934
b: refs/heads/master
c: c4107b3
h: refs/heads/master
v: v3
  • Loading branch information
Andrew Morton authored and Al Viro committed Jul 14, 2012
1 parent cad69b0 commit ea27bc5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b5fb63c18315c5510c1d0636179c057e0c761c77
refs/heads/master: c4107b3097465e25f7d6a9b0ac0518b07b24e774
3 changes: 2 additions & 1 deletion trunk/fs/attr.c
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,8 @@ int notify_change(struct dentry * dentry, struct iattr * attr)
struct timespec now;
unsigned int ia_valid = attr->ia_valid;

WARN_ON_ONCE(!mutex_is_locked(&inode->i_mutex));

if (ia_valid & (ATTR_MODE | ATTR_UID | ATTR_GID | ATTR_TIMES_SET)) {
if (IS_IMMUTABLE(inode) || IS_APPEND(inode))
return -EPERM;
Expand Down Expand Up @@ -250,5 +252,4 @@ int notify_change(struct dentry * dentry, struct iattr * attr)

return error;
}

EXPORT_SYMBOL(notify_change);

0 comments on commit ea27bc5

Please sign in to comment.