kernel/tmpfs: Sort pathconf cases.
authorSascha Wildner <saw@online.de>
Sat, 2 Jan 2016 11:23:27 +0000 (12:23 +0100)
committerSascha Wildner <saw@online.de>
Sat, 2 Jan 2016 11:23:27 +0000 (12:23 +0100)
sys/vfs/tmpfs/tmpfs_vnops.c

index bbeb218..f258d42 100644 (file)
@@ -1715,6 +1715,14 @@ tmpfs_pathconf(struct vop_pathconf_args *v)
        error = 0;
 
        switch (name) {
+       case _PC_CHOWN_RESTRICTED:
+               *retval = 1;
+               break;
+
+       case _PC_FILESIZEBITS:
+               *retval = 0; /* XXX Don't know which value should I return. */
+               break;
+
        case _PC_LINK_MAX:
                *retval = LINK_MAX;
                break;
@@ -1723,6 +1731,10 @@ tmpfs_pathconf(struct vop_pathconf_args *v)
                *retval = NAME_MAX;
                break;
 
+       case _PC_NO_TRUNC:
+               *retval = 1;
+               break;
+
        case _PC_PATH_MAX:
                *retval = PATH_MAX;
                break;
@@ -1731,22 +1743,10 @@ tmpfs_pathconf(struct vop_pathconf_args *v)
                *retval = PIPE_BUF;
                break;
 
-       case _PC_CHOWN_RESTRICTED:
-               *retval = 1;
-               break;
-
-       case _PC_NO_TRUNC:
-               *retval = 1;
-               break;
-
        case _PC_SYNC_IO:
                *retval = 1;
                break;
 
-       case _PC_FILESIZEBITS:
-               *retval = 0; /* XXX Don't know which value should I return. */
-               break;
-
        default:
                error = EINVAL;
        }