Displaying 2 results from an estimated 2 matches for "ocfs_nodev".
Did you mean:
fs_nodev
2004 Jun 06
1
[PATCH] use sb_getblk
...==================================================================
--- src/inc/ocfs.h (revision 1014)
+++ src/inc/ocfs.h (working copy)
@@ -542,21 +542,16 @@
#endif
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
-typedef struct block_device * ocfs_blockdev;
typedef dev_t ocfs_dev;
#define OCFS_NODEV 0
-#define OCFS_GET_BLOCKDEV(sb) ((sb)->s_bdev)
#else /* 2.4 kernel */
-typedef kdev_t ocfs_blockdev;
typedef int ocfs_dev;
#define OCFS_NODEV NODEV
-#define OCFS_GET_BLOCKDEV(sb) ((sb)->s_dev)
#endif
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
/* No longer exists i...
2004 Jun 02
0
[PATCH] kill 2.4 dev_t vs kdev_t crap
...ERSION_CODE >= KERNEL_VERSION(2,6,0)
dev_t dev;
-#else
- kdev_t kdev;
-#endif
+
if (fe->attribs == OCFS_ATTRIB_CHAR)
inode->i_mode |= S_IFCHR;
else if (fe->attribs == OCFS_ATTRIB_BLOCK)
@@ -1892,18 +1884,8 @@
inode->i_mode |= S_IFSOCK;
inode->i_rdev = OCFS_NODEV;
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
- dev = MKDEV (fe->dev_major, fe->dev_minor);
-#else
- kdev = MKDEV (fe->dev_major, fe->dev_minor);
-#endif
-
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
- init_special_inode (inode, inode->i_mode, dev);
-#else
- in...