ocfs2: delay inode update transactions after verifying the input flags
authorJeff Liu <jeff.liu@oracle.com>
Mon, 29 Apr 2013 22:05:56 +0000 (15:05 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 29 Apr 2013 22:54:27 +0000 (15:54 -0700)
commitb3e0767abcd6eda32cdfd9c6a6b9e53b4ddf6d4d
treef8ced4971ffc171d60820a6267b80f38d5b26fac
parent18ff44b189e2a9becb2047a790578b90aef56349
ocfs2: delay inode update transactions after verifying the input flags

There is no need to start the inode update transactions before/while
verifying the input flags.  As a refinement, this patch delay the
transactions utill the pre-check up is ok.

Signed-off-by: Jie Liu <jeff.liu@oracle.com>
Acked-by: Joel Becker <jlbec@evilplan.org>
Cc: Mark Fasheh <mfasheh@suse.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/ocfs2/ioctl.c