Merge tag 'asm-generic-4.7' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd...
[deliverable/linux.git] / fs / nilfs2 / cpfile.c
index 16f884bd857c2d2cc203220658e85f8356cabf3e..8a3d3b65af3f4cee510486f33556ed8bf950d134 100644 (file)
@@ -431,7 +431,8 @@ static void nilfs_cpfile_checkpoint_to_cpinfo(struct inode *cpfile,
 }
 
 static ssize_t nilfs_cpfile_do_get_cpinfo(struct inode *cpfile, __u64 *cnop,
-                                         void *buf, unsigned cisz, size_t nci)
+                                         void *buf, unsigned int cisz,
+                                         size_t nci)
 {
        struct nilfs_checkpoint *cp;
        struct nilfs_cpinfo *ci = buf;
@@ -482,7 +483,8 @@ static ssize_t nilfs_cpfile_do_get_cpinfo(struct inode *cpfile, __u64 *cnop,
 }
 
 static ssize_t nilfs_cpfile_do_get_ssinfo(struct inode *cpfile, __u64 *cnop,
-                                         void *buf, unsigned cisz, size_t nci)
+                                         void *buf, unsigned int cisz,
+                                         size_t nci)
 {
        struct buffer_head *bh;
        struct nilfs_cpfile_header *header;
@@ -568,7 +570,7 @@ static ssize_t nilfs_cpfile_do_get_ssinfo(struct inode *cpfile, __u64 *cnop,
  */
 
 ssize_t nilfs_cpfile_get_cpinfo(struct inode *cpfile, __u64 *cnop, int mode,
-                               void *buf, unsigned cisz, size_t nci)
+                               void *buf, unsigned int cisz, size_t nci)
 {
        switch (mode) {
        case NILFS_CHECKPOINT:
@@ -868,8 +870,10 @@ int nilfs_cpfile_is_snapshot(struct inode *cpfile, __u64 cno)
        void *kaddr;
        int ret;
 
-       /* CP number is invalid if it's zero or larger than the
-       largest exist one.*/
+       /*
+        * CP number is invalid if it's zero or larger than the
+        * largest existing one.
+        */
        if (cno == 0 || cno >= nilfs_mdt_cno(cpfile))
                return -ENOENT;
        down_read(&NILFS_MDT(cpfile)->mi_sem);
This page took 0.02704 seconds and 5 git commands to generate.