]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ocfs2: add missing errno in ocfs2_ioctl_move_extents()
authorYounger Liu <younger.liu@huawei.com>
Tue, 5 Nov 2013 05:55:07 +0000 (16:55 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 5 Nov 2013 05:55:07 +0000 (16:55 +1100)
commitfbdd518659bd759db27dfcb0b9f16b601a1ae182
tree46ed6c556c5aa37c66bda2814f03fe9a696bd469
parent7f770958cb06e3a18f70c8883f26bbdf6c30e1ce
ocfs2: add missing errno in ocfs2_ioctl_move_extents()

If the file is not regular or writeable, it should return errno(EPERM).

This patch is based on 85a258b70d ("ocfs2: fix error handling in
ocfs2_ioctl_move_extents()").

Signed-off-by: Younger Liu <younger.liu@huawei.com>
Signed-off-by: Jie Liu <jeff.liu@oracle.com>
Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Jie Liu <jeff.liu@oracle.com>
Cc: Joel Becker <jlbec@evilplan.org>
Cc: Mark Fasheh <mfasheh@suse.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/ocfs2/move_extents.c