dlmfs.c (e23c34bb41da65f354fb7eee04300c56ee48f60c) | dlmfs.c (ff8fb335221e2c446b0d4cbea26be371fd2feb64) |
---|---|
1/* -*- mode: c; c-basic-offset: 8; -*- 2 * vim: noexpandtab sw=8 ts=8 sts=0: 3 * 4 * dlmfs.c 5 * 6 * Code which implements the kernel side of a minimal userspace 7 * interface to our DLM. This file handles the virtual file system 8 * used for communication with userspace. Credit should go to ramfs, --- 35 unchanged lines hidden (view full) --- 44#include <linux/string.h> 45#include <linux/backing-dev.h> 46#include <linux/poll.h> 47 48#include <asm/uaccess.h> 49 50#include "stackglue.h" 51#include "userdlm.h" | 1/* -*- mode: c; c-basic-offset: 8; -*- 2 * vim: noexpandtab sw=8 ts=8 sts=0: 3 * 4 * dlmfs.c 5 * 6 * Code which implements the kernel side of a minimal userspace 7 * interface to our DLM. This file handles the virtual file system 8 * used for communication with userspace. Credit should go to ramfs, --- 35 unchanged lines hidden (view full) --- 44#include <linux/string.h> 45#include <linux/backing-dev.h> 46#include <linux/poll.h> 47 48#include <asm/uaccess.h> 49 50#include "stackglue.h" 51#include "userdlm.h" |
52#include "dlmfsver.h" | |
53 54#define MLOG_MASK_PREFIX ML_DLMFS 55#include "cluster/masklog.h" 56 57 58static const struct super_operations dlmfs_ops; 59static const struct file_operations dlmfs_file_operations; 60static const struct inode_operations dlmfs_dir_inode_operations; --- 578 unchanged lines hidden (view full) --- 639}; 640MODULE_ALIAS_FS("ocfs2_dlmfs"); 641 642static int __init init_dlmfs_fs(void) 643{ 644 int status; 645 int cleanup_inode = 0, cleanup_worker = 0; 646 | 52 53#define MLOG_MASK_PREFIX ML_DLMFS 54#include "cluster/masklog.h" 55 56 57static const struct super_operations dlmfs_ops; 58static const struct file_operations dlmfs_file_operations; 59static const struct inode_operations dlmfs_dir_inode_operations; --- 578 unchanged lines hidden (view full) --- 638}; 639MODULE_ALIAS_FS("ocfs2_dlmfs"); 640 641static int __init init_dlmfs_fs(void) 642{ 643 int status; 644 int cleanup_inode = 0, cleanup_worker = 0; 645 |
647 dlmfs_print_version(); 648 | |
649 status = bdi_init(&dlmfs_backing_dev_info); 650 if (status) 651 return status; 652 653 dlmfs_inode_cache = kmem_cache_create("dlmfs_inode_cache", 654 sizeof(struct dlmfs_inode_private), 655 0, (SLAB_HWCACHE_ALIGN|SLAB_RECLAIM_ACCOUNT| 656 SLAB_MEM_SPREAD), --- 39 unchanged lines hidden (view full) --- 696 rcu_barrier(); 697 kmem_cache_destroy(dlmfs_inode_cache); 698 699 bdi_destroy(&dlmfs_backing_dev_info); 700} 701 702MODULE_AUTHOR("Oracle"); 703MODULE_LICENSE("GPL"); | 646 status = bdi_init(&dlmfs_backing_dev_info); 647 if (status) 648 return status; 649 650 dlmfs_inode_cache = kmem_cache_create("dlmfs_inode_cache", 651 sizeof(struct dlmfs_inode_private), 652 0, (SLAB_HWCACHE_ALIGN|SLAB_RECLAIM_ACCOUNT| 653 SLAB_MEM_SPREAD), --- 39 unchanged lines hidden (view full) --- 693 rcu_barrier(); 694 kmem_cache_destroy(dlmfs_inode_cache); 695 696 bdi_destroy(&dlmfs_backing_dev_info); 697} 698 699MODULE_AUTHOR("Oracle"); 700MODULE_LICENSE("GPL"); |
701MODULE_DESCRIPTION("OCFS2 DLM-Filesystem"); |
|
704 705module_init(init_dlmfs_fs) 706module_exit(exit_dlmfs_fs) | 702 703module_init(init_dlmfs_fs) 704module_exit(exit_dlmfs_fs) |