f2fs: use the F2FS specific flags in f2fs_ioctl()
authorNamjae Jeon <namjae.jeon@samsung.com>
Sat, 8 Jun 2013 12:25:28 +0000 (21:25 +0900)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:43:50 +0000 (11:43 +0900)
In f2fs_ioctl() function, it is using generic flags.
Since F2FS specific flags are defined. So lets use
those flags.

Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: Pankaj Kumar <pankaj.km@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
fs/f2fs/file.c

index 8d2fce9..85b665d 100644 (file)
@@ -575,10 +575,10 @@ long f2fs_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
        int ret;
 
        switch (cmd) {
-       case FS_IOC_GETFLAGS:
+       case F2FS_IOC_GETFLAGS:
                flags = fi->i_flags & FS_FL_USER_VISIBLE;
                return put_user(flags, (int __user *) arg);
-       case FS_IOC_SETFLAGS:
+       case F2FS_IOC_SETFLAGS:
        {
                unsigned int oldflags;