2 * Copyright (c) 2000-2005 Silicon Graphics, Inc. All Rights Reserved.
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of version 2 of the GNU General Public License as
6 * published by the Free Software Foundation.
8 * This program is distributed in the hope that it would be useful, but
9 * WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12 * Further, this software is distributed without any warranty that it is
13 * free of the rightful claim of any third person regarding infringement
14 * or the like. Any license provided herein, whether implied or
15 * otherwise, applies only to this software file. Patent licenses, if
16 * any, provided herein do not apply to combinations of this program with
17 * other software, or any other product whatsoever.
19 * You should have received a copy of the GNU General Public License along
20 * with this program; if not, write the Free Software Foundation, Inc., 59
21 * Temple Place - Suite 330, Boston MA 02111-1307, USA.
23 * Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy,
24 * Mountain View, CA 94043, or:
28 * For further information regarding this notice, see:
30 * http://oss.sgi.com/projects/GenInfo/SGIGPLNoticeExplan/
38 #include "xfs_trans.h"
42 #include "xfs_alloc.h"
43 #include "xfs_dmapi.h"
44 #include "xfs_quota.h"
45 #include "xfs_mount.h"
46 #include "xfs_alloc_btree.h"
47 #include "xfs_bmap_btree.h"
48 #include "xfs_ialloc_btree.h"
49 #include "xfs_btree.h"
50 #include "xfs_ialloc.h"
51 #include "xfs_attr_sf.h"
52 #include "xfs_dir_sf.h"
53 #include "xfs_dir2_sf.h"
54 #include "xfs_dinode.h"
55 #include "xfs_inode.h"
58 #include "xfs_rtalloc.h"
59 #include "xfs_error.h"
60 #include "xfs_itable.h"
66 #include "xfs_buf_item.h"
67 #include "xfs_utils.h"
68 #include "xfs_version.h"
70 #include <linux/namei.h>
71 #include <linux/init.h>
72 #include <linux/mount.h>
73 #include <linux/mempool.h>
74 #include <linux/writeback.h>
76 STATIC struct quotactl_ops linvfs_qops;
77 STATIC struct super_operations linvfs_sops;
78 STATIC kmem_zone_t *xfs_vnode_zone;
79 STATIC kmem_zone_t *xfs_ioend_zone;
80 mempool_t *xfs_ioend_pool;
82 STATIC struct xfs_mount_args *
84 struct super_block *sb)
86 struct xfs_mount_args *args;
88 args = kmem_zalloc(sizeof(struct xfs_mount_args), KM_SLEEP);
89 args->logbufs = args->logbufsize = -1;
90 strncpy(args->fsname, sb->s_id, MAXNAMELEN);
92 /* Copy the already-parsed mount(2) flags we're interested in */
93 if (sb->s_flags & MS_NOATIME)
94 args->flags |= XFSMNT_NOATIME;
95 if (sb->s_flags & MS_DIRSYNC)
96 args->flags |= XFSMNT_DIRSYNC;
97 if (sb->s_flags & MS_SYNCHRONOUS)
98 args->flags |= XFSMNT_WSYNC;
100 /* Default to 32 bit inodes on Linux all the time */
101 args->flags |= XFSMNT_32BITINODES;
108 unsigned int blockshift)
110 unsigned int pagefactor = 1;
111 unsigned int bitshift = BITS_PER_LONG - 1;
113 /* Figure out maximum filesize, on Linux this can depend on
114 * the filesystem blocksize (on 32 bit platforms).
115 * __block_prepare_write does this in an [unsigned] long...
116 * page->index << (PAGE_CACHE_SHIFT - bbits)
117 * So, for page sized blocks (4K on 32 bit platforms),
118 * this wraps at around 8Tb (hence MAX_LFS_FILESIZE which is
119 * (((u64)PAGE_CACHE_SIZE << (BITS_PER_LONG-1))-1)
120 * but for smaller blocksizes it is less (bbits = log2 bsize).
121 * Note1: get_block_t takes a long (implicit cast from above)
122 * Note2: The Large Block Device (LBD and HAVE_SECTOR_T) patch
123 * can optionally convert the [unsigned] long from above into
124 * an [unsigned] long long.
127 #if BITS_PER_LONG == 32
128 # if defined(CONFIG_LBD)
129 ASSERT(sizeof(sector_t) == 8);
130 pagefactor = PAGE_CACHE_SIZE;
131 bitshift = BITS_PER_LONG;
133 pagefactor = PAGE_CACHE_SIZE >> (PAGE_CACHE_SHIFT - blockshift);
137 return (((__uint64_t)pagefactor) << bitshift) - 1;
140 STATIC __inline__ void
144 switch (inode->i_mode & S_IFMT) {
146 inode->i_op = &linvfs_file_inode_operations;
147 inode->i_fop = &linvfs_file_operations;
148 inode->i_mapping->a_ops = &linvfs_aops;
151 inode->i_op = &linvfs_dir_inode_operations;
152 inode->i_fop = &linvfs_dir_operations;
155 inode->i_op = &linvfs_symlink_inode_operations;
157 inode->i_mapping->a_ops = &linvfs_aops;
160 inode->i_op = &linvfs_file_inode_operations;
161 init_special_inode(inode, inode->i_mode, inode->i_rdev);
166 STATIC __inline__ void
167 xfs_revalidate_inode(
172 struct inode *inode = LINVFS_GET_IP(vp);
174 inode->i_mode = ip->i_d.di_mode;
175 inode->i_nlink = ip->i_d.di_nlink;
176 inode->i_uid = ip->i_d.di_uid;
177 inode->i_gid = ip->i_d.di_gid;
179 switch (inode->i_mode & S_IFMT) {
183 MKDEV(sysv_major(ip->i_df.if_u2.if_rdev) & 0x1ff,
184 sysv_minor(ip->i_df.if_u2.if_rdev));
191 inode->i_blksize = PAGE_CACHE_SIZE;
192 inode->i_generation = ip->i_d.di_gen;
193 i_size_write(inode, ip->i_d.di_size);
195 XFS_FSB_TO_BB(mp, ip->i_d.di_nblocks + ip->i_delayed_blks);
196 inode->i_atime.tv_sec = ip->i_d.di_atime.t_sec;
197 inode->i_atime.tv_nsec = ip->i_d.di_atime.t_nsec;
198 inode->i_mtime.tv_sec = ip->i_d.di_mtime.t_sec;
199 inode->i_mtime.tv_nsec = ip->i_d.di_mtime.t_nsec;
200 inode->i_ctime.tv_sec = ip->i_d.di_ctime.t_sec;
201 inode->i_ctime.tv_nsec = ip->i_d.di_ctime.t_nsec;
202 if (ip->i_d.di_flags & XFS_DIFLAG_IMMUTABLE)
203 inode->i_flags |= S_IMMUTABLE;
205 inode->i_flags &= ~S_IMMUTABLE;
206 if (ip->i_d.di_flags & XFS_DIFLAG_APPEND)
207 inode->i_flags |= S_APPEND;
209 inode->i_flags &= ~S_APPEND;
210 if (ip->i_d.di_flags & XFS_DIFLAG_SYNC)
211 inode->i_flags |= S_SYNC;
213 inode->i_flags &= ~S_SYNC;
214 if (ip->i_d.di_flags & XFS_DIFLAG_NOATIME)
215 inode->i_flags |= S_NOATIME;
217 inode->i_flags &= ~S_NOATIME;
218 vp->v_flag &= ~VMODIFIED;
222 xfs_initialize_vnode(
225 bhv_desc_t *inode_bhv,
228 xfs_inode_t *ip = XFS_BHVTOI(inode_bhv);
229 struct inode *inode = LINVFS_GET_IP(vp);
231 if (!inode_bhv->bd_vobj) {
232 vp->v_vfsp = bhvtovfs(bdp);
233 bhv_desc_init(inode_bhv, ip, vp, &xfs_vnodeops);
234 bhv_insert(VN_BHV_HEAD(vp), inode_bhv);
238 * We need to set the ops vectors, and unlock the inode, but if
239 * we have been called during the new inode create process, it is
240 * too early to fill in the Linux inode. We will get called a
241 * second time once the inode is properly set up, and then we can
244 if (ip->i_d.di_mode != 0 && unlock && (inode->i_state & I_NEW)) {
245 xfs_revalidate_inode(XFS_BHVTOM(bdp), vp, ip);
246 xfs_set_inodeops(inode);
248 ip->i_flags &= ~XFS_INEW;
251 unlock_new_inode(inode);
259 struct block_device **bdevp)
263 *bdevp = open_bdev_excl(name, 0, mp);
264 if (IS_ERR(*bdevp)) {
265 error = PTR_ERR(*bdevp);
266 printk("XFS: Invalid device [%s], error=%d\n", name, error);
274 struct block_device *bdev)
277 close_bdev_excl(bdev);
281 STATIC struct inode *
283 struct super_block *sb)
287 vp = kmem_cache_alloc(xfs_vnode_zone, kmem_flags_convert(KM_SLEEP));
290 return LINVFS_GET_IP(vp);
294 linvfs_destroy_inode(
297 kmem_zone_free(xfs_vnode_zone, LINVFS_GET_VP(inode));
301 linvfs_inode_init_once(
303 kmem_cache_t *cachep,
306 vnode_t *vp = (vnode_t *)data;
308 if ((flags & (SLAB_CTOR_VERIFY|SLAB_CTOR_CONSTRUCTOR)) ==
309 SLAB_CTOR_CONSTRUCTOR)
310 inode_init_once(LINVFS_GET_IP(vp));
314 linvfs_init_zones(void)
316 xfs_vnode_zone = kmem_cache_create("xfs_vnode",
317 sizeof(vnode_t), 0, SLAB_RECLAIM_ACCOUNT,
318 linvfs_inode_init_once, NULL);
322 xfs_ioend_zone = kmem_zone_init(sizeof(xfs_ioend_t), "xfs_ioend");
324 goto out_destroy_vnode_zone;
326 xfs_ioend_pool = mempool_create(4 * MAX_BUF_PER_PAGE,
327 mempool_alloc_slab, mempool_free_slab,
330 goto out_free_ioend_zone;
336 kmem_zone_destroy(xfs_ioend_zone);
337 out_destroy_vnode_zone:
338 kmem_zone_destroy(xfs_vnode_zone);
344 linvfs_destroy_zones(void)
346 mempool_destroy(xfs_ioend_pool);
347 kmem_zone_destroy(xfs_vnode_zone);
348 kmem_zone_destroy(xfs_ioend_zone);
352 * Attempt to flush the inode, this will actually fail
353 * if the inode is pinned, but we dirty the inode again
354 * at the point when it is unpinned after a log write,
355 * since this is when the inode itself becomes flushable.
362 vnode_t *vp = LINVFS_GET_VP(inode);
363 int error = 0, flags = FLUSH_INODE;
366 vn_trace_entry(vp, __FUNCTION__, (inst_t *)__return_address);
369 VOP_IFLUSH(vp, flags, error);
370 if (error == EAGAIN) {
372 VOP_IFLUSH(vp, flags | FLUSH_LOG, error);
385 vnode_t *vp = LINVFS_GET_VP(inode);
388 vn_trace_entry(vp, "clear_inode", (inst_t *)__return_address);
390 ASSERT(vp->v_fbhv != NULL);
392 XFS_STATS_INC(vn_rele);
393 XFS_STATS_INC(vn_remove);
394 XFS_STATS_INC(vn_reclaim);
395 XFS_STATS_DEC(vn_active);
397 VOP_INACTIVE(vp, NULL, cache);
400 vp->v_flag &= ~VMODIFIED;
403 VOP_RECLAIM(vp, error);
405 panic("vn_purge: cannot reclaim");
407 ASSERT(vp->v_fbhv == NULL);
409 #ifdef XFS_VNODE_TRACE
410 ktrace_free(vp->v_trace);
415 * Enqueue a work item to be picked up by the vfs xfssyncd thread.
416 * Doing this has two advantages:
417 * - It saves on stack space, which is tight in certain situations
418 * - It can be used (with care) as a mechanism to avoid deadlocks.
419 * Flushing while allocating in a full filesystem requires both.
422 xfs_syncd_queue_work(
425 void (*syncer)(vfs_t *, void *))
427 vfs_sync_work_t *work;
429 work = kmem_alloc(sizeof(struct vfs_sync_work), KM_SLEEP);
430 INIT_LIST_HEAD(&work->w_list);
431 work->w_syncer = syncer;
434 spin_lock(&vfs->vfs_sync_lock);
435 list_add_tail(&work->w_list, &vfs->vfs_sync_list);
436 spin_unlock(&vfs->vfs_sync_lock);
437 wake_up_process(vfs->vfs_sync_task);
441 * Flush delayed allocate data, attempting to free up reserved space
442 * from existing allocations. At this point a new allocation attempt
443 * has failed with ENOSPC and we are in the process of scratching our
444 * heads, looking about for more room...
447 xfs_flush_inode_work(
451 filemap_flush(((struct inode *)inode)->i_mapping);
452 iput((struct inode *)inode);
459 struct inode *inode = LINVFS_GET_IP(XFS_ITOV(ip));
460 struct vfs *vfs = XFS_MTOVFS(ip->i_mount);
463 xfs_syncd_queue_work(vfs, inode, xfs_flush_inode_work);
468 * This is the "bigger hammer" version of xfs_flush_inode_work...
469 * (IOW, "If at first you don't succeed, use a Bigger Hammer").
472 xfs_flush_device_work(
476 sync_blockdev(vfs->vfs_super->s_bdev);
477 iput((struct inode *)inode);
484 struct inode *inode = LINVFS_GET_IP(XFS_ITOV(ip));
485 struct vfs *vfs = XFS_MTOVFS(ip->i_mount);
488 xfs_syncd_queue_work(vfs, inode, xfs_flush_device_work);
490 xfs_log_force(ip->i_mount, (xfs_lsn_t)0, XFS_LOG_FORCE|XFS_LOG_SYNC);
493 #define SYNCD_FLAGS (SYNC_FSDATA|SYNC_BDFLUSH|SYNC_ATTR)
501 if (!(vfsp->vfs_flag & VFS_RDONLY))
502 VFS_SYNC(vfsp, SYNCD_FLAGS, NULL, error);
503 vfsp->vfs_sync_seq++;
505 wake_up(&vfsp->vfs_wait_single_sync_task);
513 vfs_t *vfsp = (vfs_t *) arg;
514 struct list_head tmp;
515 struct vfs_sync_work *work, *n;
517 daemonize("xfssyncd");
519 vfsp->vfs_sync_work.w_vfs = vfsp;
520 vfsp->vfs_sync_work.w_syncer = vfs_sync_worker;
521 vfsp->vfs_sync_task = current;
523 wake_up(&vfsp->vfs_wait_sync_task);
525 INIT_LIST_HEAD(&tmp);
526 timeleft = (xfs_syncd_centisecs * HZ) / 100;
528 set_current_state(TASK_INTERRUPTIBLE);
529 timeleft = schedule_timeout(timeleft);
532 if (vfsp->vfs_flag & VFS_UMOUNT)
535 spin_lock(&vfsp->vfs_sync_lock);
537 * We can get woken by laptop mode, to do a sync -
538 * that's the (only!) case where the list would be
539 * empty with time remaining.
541 if (!timeleft || list_empty(&vfsp->vfs_sync_list)) {
543 timeleft = (xfs_syncd_centisecs * HZ) / 100;
544 INIT_LIST_HEAD(&vfsp->vfs_sync_work.w_list);
545 list_add_tail(&vfsp->vfs_sync_work.w_list,
546 &vfsp->vfs_sync_list);
548 list_for_each_entry_safe(work, n, &vfsp->vfs_sync_list, w_list)
549 list_move(&work->w_list, &tmp);
550 spin_unlock(&vfsp->vfs_sync_lock);
552 list_for_each_entry_safe(work, n, &tmp, w_list) {
553 (*work->w_syncer)(vfsp, work->w_data);
554 list_del(&work->w_list);
555 if (work == &vfsp->vfs_sync_work)
557 kmem_free(work, sizeof(struct vfs_sync_work));
561 vfsp->vfs_sync_task = NULL;
563 wake_up(&vfsp->vfs_wait_sync_task);
574 pid = kernel_thread(xfssyncd, (void *) vfsp,
575 CLONE_VM | CLONE_FS | CLONE_FILES);
578 wait_event(vfsp->vfs_wait_sync_task, vfsp->vfs_sync_task);
586 vfsp->vfs_flag |= VFS_UMOUNT;
589 wake_up_process(vfsp->vfs_sync_task);
590 wait_event(vfsp->vfs_wait_sync_task, !vfsp->vfs_sync_task);
595 struct super_block *sb)
597 vfs_t *vfsp = LINVFS_GET_VFS(sb);
600 linvfs_stop_syncd(vfsp);
601 VFS_SYNC(vfsp, SYNC_ATTR|SYNC_DELWRI, NULL, error);
603 VFS_UNMOUNT(vfsp, 0, NULL, error);
605 printk("XFS unmount got error %d\n", error);
606 printk("%s: vfsp/0x%p left dangling!\n", __FUNCTION__, vfsp);
610 vfs_deallocate(vfsp);
615 struct super_block *sb)
617 vfs_t *vfsp = LINVFS_GET_VFS(sb);
620 if (sb->s_flags & MS_RDONLY) {
621 sb->s_dirt = 0; /* paranoia */
624 /* Push the log and superblock a little */
625 VFS_SYNC(vfsp, SYNC_FSDATA, NULL, error);
631 struct super_block *sb,
634 vfs_t *vfsp = LINVFS_GET_VFS(sb);
636 int flags = SYNC_FSDATA;
638 if (unlikely(sb->s_frozen == SB_FREEZE_WRITE))
639 flags = SYNC_QUIESCE;
641 flags = SYNC_FSDATA | (wait ? SYNC_WAIT : 0);
643 VFS_SYNC(vfsp, flags, NULL, error);
646 if (unlikely(laptop_mode)) {
647 int prev_sync_seq = vfsp->vfs_sync_seq;
650 * The disk must be active because we're syncing.
651 * We schedule xfssyncd now (now that the disk is
652 * active) instead of later (when it might not be).
654 wake_up_process(vfsp->vfs_sync_task);
656 * We have to wait for the sync iteration to complete.
657 * If we don't, the disk activity caused by the sync
658 * will come after the sync is completed, and that
659 * triggers another sync from laptop mode.
661 wait_event(vfsp->vfs_wait_single_sync_task,
662 vfsp->vfs_sync_seq != prev_sync_seq);
670 struct super_block *sb,
671 struct kstatfs *statp)
673 vfs_t *vfsp = LINVFS_GET_VFS(sb);
676 VFS_STATVFS(vfsp, statp, NULL, error);
682 struct super_block *sb,
686 vfs_t *vfsp = LINVFS_GET_VFS(sb);
687 struct xfs_mount_args *args = xfs_args_allocate(sb);
690 VFS_PARSEARGS(vfsp, options, args, 1, error);
692 VFS_MNTUPDATE(vfsp, flags, args, error);
693 kmem_free(args, sizeof(*args));
699 struct super_block *sb)
701 VFS_FREEZE(LINVFS_GET_VFS(sb));
707 struct vfsmount *mnt)
709 struct vfs *vfsp = LINVFS_GET_VFS(mnt->mnt_sb);
712 VFS_SHOWARGS(vfsp, m, error);
718 struct super_block *sb,
719 struct fs_quota_stat *fqs)
721 struct vfs *vfsp = LINVFS_GET_VFS(sb);
724 VFS_QUOTACTL(vfsp, Q_XGETQSTAT, 0, (caddr_t)fqs, error);
730 struct super_block *sb,
734 struct vfs *vfsp = LINVFS_GET_VFS(sb);
737 VFS_QUOTACTL(vfsp, op, 0, (caddr_t)&flags, error);
743 struct super_block *sb,
746 struct fs_disk_quota *fdq)
748 struct vfs *vfsp = LINVFS_GET_VFS(sb);
751 getmode = (type == USRQUOTA) ? Q_XGETQUOTA :
752 ((type == GRPQUOTA) ? Q_XGETGQUOTA : Q_XGETPQUOTA);
753 VFS_QUOTACTL(vfsp, getmode, id, (caddr_t)fdq, error);
759 struct super_block *sb,
762 struct fs_disk_quota *fdq)
764 struct vfs *vfsp = LINVFS_GET_VFS(sb);
767 setmode = (type == USRQUOTA) ? Q_XSETQLIM :
768 ((type == GRPQUOTA) ? Q_XSETGQLIM : Q_XSETPQLIM);
769 VFS_QUOTACTL(vfsp, setmode, id, (caddr_t)fdq, error);
775 struct super_block *sb,
780 struct vfs *vfsp = vfs_allocate();
781 struct xfs_mount_args *args = xfs_args_allocate(sb);
782 struct kstatfs statvfs;
785 vfsp->vfs_super = sb;
786 LINVFS_SET_VFS(sb, vfsp);
787 if (sb->s_flags & MS_RDONLY)
788 vfsp->vfs_flag |= VFS_RDONLY;
789 bhv_insert_all_vfsops(vfsp);
791 VFS_PARSEARGS(vfsp, (char *)data, args, 0, error);
793 bhv_remove_all_vfsops(vfsp, 1);
797 sb_min_blocksize(sb, BBSIZE);
798 #ifdef CONFIG_XFS_EXPORT
799 sb->s_export_op = &linvfs_export_ops;
801 sb->s_qcop = &linvfs_qops;
802 sb->s_op = &linvfs_sops;
804 VFS_MOUNT(vfsp, args, NULL, error);
806 bhv_remove_all_vfsops(vfsp, 1);
810 VFS_STATVFS(vfsp, &statvfs, NULL, error);
815 sb->s_magic = statvfs.f_type;
816 sb->s_blocksize = statvfs.f_bsize;
817 sb->s_blocksize_bits = ffs(statvfs.f_bsize) - 1;
818 sb->s_maxbytes = xfs_max_file_offset(sb->s_blocksize_bits);
820 set_posix_acl_flag(sb);
822 VFS_ROOT(vfsp, &rootvp, error);
826 sb->s_root = d_alloc_root(LINVFS_GET_IP(rootvp));
831 if (is_bad_inode(sb->s_root->d_inode)) {
835 if ((error = linvfs_start_syncd(vfsp)))
837 vn_trace_exit(rootvp, __FUNCTION__, (inst_t *)__return_address);
839 kmem_free(args, sizeof(*args));
851 VFS_UNMOUNT(vfsp, 0, NULL, error2);
854 vfs_deallocate(vfsp);
855 kmem_free(args, sizeof(*args));
859 STATIC struct super_block *
861 struct file_system_type *fs_type,
863 const char *dev_name,
866 return get_sb_bdev(fs_type, flags, dev_name, data, linvfs_fill_super);
869 STATIC struct super_operations linvfs_sops = {
870 .alloc_inode = linvfs_alloc_inode,
871 .destroy_inode = linvfs_destroy_inode,
872 .write_inode = linvfs_write_inode,
873 .clear_inode = linvfs_clear_inode,
874 .put_super = linvfs_put_super,
875 .write_super = linvfs_write_super,
876 .sync_fs = linvfs_sync_super,
877 .write_super_lockfs = linvfs_freeze_fs,
878 .statfs = linvfs_statfs,
879 .remount_fs = linvfs_remount,
880 .show_options = linvfs_show_options,
883 STATIC struct quotactl_ops linvfs_qops = {
884 .get_xstate = linvfs_getxstate,
885 .set_xstate = linvfs_setxstate,
886 .get_xquota = linvfs_getxquota,
887 .set_xquota = linvfs_setxquota,
890 STATIC struct file_system_type xfs_fs_type = {
891 .owner = THIS_MODULE,
893 .get_sb = linvfs_get_sb,
894 .kill_sb = kill_block_super,
895 .fs_flags = FS_REQUIRES_DEV,
904 static char message[] __initdata = KERN_INFO \
905 XFS_VERSION_STRING " with " XFS_BUILD_OPTIONS " enabled\n";
910 xfs_physmem = si.totalram;
914 error = linvfs_init_zones();
918 error = pagebuf_init();
927 error = register_filesystem(&xfs_fs_type);
930 XFS_DM_INIT(&xfs_fs_type);
937 linvfs_destroy_zones();
947 XFS_DM_EXIT(&xfs_fs_type);
948 unregister_filesystem(&xfs_fs_type);
951 linvfs_destroy_zones();
955 module_init(init_xfs_fs);
956 module_exit(exit_xfs_fs);
958 MODULE_AUTHOR("Silicon Graphics, Inc.");
959 MODULE_DESCRIPTION(XFS_VERSION_STRING " with " XFS_BUILD_OPTIONS " enabled");
960 MODULE_LICENSE("GPL");