fix setattr error handling in sysfs, configfs
authorNick Piggin <npiggin@suse.de>
Mon, 31 May 2010 07:58:02 +0000 (17:58 +1000)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 4 Jun 2010 21:16:29 +0000 (17:16 -0400)
commit8718d36cf99f5acf0f37487557ec25aee54b930b
tree3417c944630f4719dcee113ceb646e5ad743cee6
parent5b54470daded19d83ea2bbf5f6bc12662942cd63
fix setattr error handling in sysfs, configfs

sysfs and configfs setattr functions have error cases after the generic inode's
attributes have been changed. Fix consistency by changing the generic inode
attributes only when it is guaranteed to succeed.

Signed-off-by: Nick Piggin <npiggin@suse.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/configfs/inode.c
fs/sysfs/inode.c