Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 187090
b: refs/heads/master
c: f8d4f61
h: refs/heads/master
v: v3
  • Loading branch information
Eric W. Biederman authored and Greg Kroah-Hartman committed Mar 8, 2010
1 parent c68a766 commit e14112c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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: b35c74dab64f4c212f36d868419108556c9cf3e2
refs/heads/master: f8d4f618fed5a4978afada52166bc2efaf7656d1
8 changes: 4 additions & 4 deletions trunk/fs/sysfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,20 +111,20 @@ int sysfs_setattr(struct dentry *dentry, struct iattr *iattr)
if (!sd)
return -EINVAL;

mutex_lock(&sysfs_mutex);
error = inode_change_ok(inode, iattr);
if (error)
return error;
goto out;

iattr->ia_valid &= ~ATTR_SIZE; /* ignore size changes */

error = inode_setattr(inode, iattr);
if (error)
return error;
goto out;

mutex_lock(&sysfs_mutex);
error = sysfs_sd_setattr(sd, iattr);
out:
mutex_unlock(&sysfs_mutex);

return error;
}

Expand Down

0 comments on commit e14112c

Please sign in to comment.