Skip to content

Commit

Permalink
f2fs: use the F2FS specific flags in f2fs_ioctl()
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Pankaj Kumar <[email protected]>
Signed-off-by: Jaegeuk Kim <[email protected]>
  • Loading branch information
namjaejeon authored and Jaegeuk Kim committed Jun 14, 2013
1 parent 699489b commit 6a3e8ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fs/f2fs/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 6a3e8ef

Please sign in to comment.