f2fs: add compat_ioctl to provide backward compatability
authorhujianyang <hujianyang@huawei.com>
Tue, 12 May 2015 08:05:57 +0000 (16:05 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 1 Jun 2015 23:20:51 +0000 (16:20 -0700)
commit08b95126c787441e4ef572422a5237dd985147be
tree6f433f4033f8f247764f6fcb72d8bd9e81bd6b6b
parent40a02be1781f726ee015bcf7c8961a71a2a50f05
f2fs: add compat_ioctl to provide backward compatability

introduce compat_ioctl to regular files, but doesn't add this
functionality to f2fs_dir_operations.

While running a 32-bit busybox, I met an error like this:
(A is a directory)

chattr: reading flags on A: Inappropriate ioctl for device

This patch copies compat_ioctl from f2fs_file_operations and
fix this problem.

Signed-off-by: hujianyang <hujianyang@huawei.com>
Reviewed-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/dir.c