fix setattr error handling in sysfs, configfs
authorNick Piggin <npiggin@suse.de>
Mon, 31 May 2010 07:58:02 +0000 (17:58 +1000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 4 Jun 2010 20:27:53 +0000 (13:27 -0700)
commit75de46b98dda624397ccb17c106e51f478a79c15
tree8c4cf43eb8f840e84a48d387928673bcccd03d66
parent743db2d903bc4e963a31496328d847d69f75047c
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>
Acked-by: Joel Becker <joel.becker@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/configfs/inode.c
fs/sysfs/inode.c