Orangefs: clean up orangefs_kernel_op_s comments.
[linux-2.6-block.git] / fs / orangefs / super.c
index 52bc522ea21c54adddeafeac0b0b09bf4b8344b5..93cc352be360f15bc12165d467ede7cd512533f0 100644 (file)
@@ -92,8 +92,7 @@ static struct inode *orangefs_alloc_inode(struct super_block *sb)
 {
        struct orangefs_inode_s *orangefs_inode;
 
-       orangefs_inode = kmem_cache_alloc(orangefs_inode_cache,
-                                      ORANGEFS_CACHE_ALLOC_FLAGS);
+       orangefs_inode = kmem_cache_alloc(orangefs_inode_cache, GFP_KERNEL);
        if (orangefs_inode == NULL) {
                gossip_err("Failed to allocate orangefs_inode\n");
                return NULL;
@@ -158,11 +157,15 @@ static int orangefs_statfs(struct dentry *dentry, struct kstatfs *buf)
                goto out_op_release;
 
        gossip_debug(GOSSIP_SUPER_DEBUG,
-                    "orangefs_statfs: got %ld blocks available | "
-                    "%ld blocks total | %ld block size\n",
+                    "%s: got %ld blocks available | "
+                    "%ld blocks total | %ld block size | "
+                    "%ld files total | %ld files avail\n",
+                    __func__,
                     (long)new_op->downcall.resp.statfs.blocks_avail,
                     (long)new_op->downcall.resp.statfs.blocks_total,
-                    (long)new_op->downcall.resp.statfs.block_size);
+                    (long)new_op->downcall.resp.statfs.block_size,
+                    (long)new_op->downcall.resp.statfs.files_total,
+                    (long)new_op->downcall.resp.statfs.files_avail);
 
        buf->f_type = sb->s_magic;
        memcpy(&buf->f_fsid, &ORANGEFS_SB(sb)->fs_id, sizeof(buf->f_fsid));
@@ -342,7 +345,7 @@ out:
        return type;
 }
 
-static struct export_operations orangefs_export_ops = {
+static const struct export_operations orangefs_export_ops = {
        .encode_fh = orangefs_encode_fh,
        .fh_to_dentry = orangefs_fh_to_dentry,
 };