Skip to contentSkip to conversation

f2fs: use the F2FS sepcifice flags in f2fs_ioctl()

PATCH In review Namjae Jeon 1 participant 1 message Jun 8, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 3/4 f2fs: use the F2FS sepcifice flags in f2fs_ioctl()

From: Namjae Jeon <[email protected]>

In f2fs_ioctl() function, it is using generic flags. Since F2FS specific flags are defined. So lets use those flags.

---
 fs/f2fs/file.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
fs/f2fs/file.c +2 -2
index 8dfc1da..6071ff5 100644
@@ -538,10 +538,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;
 
Signature · 9 lines
1.7.9.5


------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j