- Remove much of the NULL struct element initializers.
- Various updates to make compatible with recent kernels.
+ - Remove defines of MAX_BUF_PER_PAGE and include linux/buffer_head.h
+ in fs/ntfs/ntfs.h instead.
+ - Remove no longer needed KERNEL_VERSION checks. We are now in the
+ kernel proper so they are no longer needed.
2.0.6 - Major bugfix to make compatible with other kernel changes.
#include "ntfs.h"
-#define MAX_BUF_PER_PAGE (PAGE_CACHE_SIZE / 512)
-
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,8)
-#define page_buffers(page) (page)->buffers
-#endif
-
/**
* end_buffer_read_file_async -
*
#include "ntfs.h"
-#define MAX_BUF_PER_PAGE (PAGE_CACHE_SIZE / 512)
-
/**
* __format_mft_record - initialize an empty mft record
* @m: mapped, pinned and locked for writing mft record
#include <linux/version.h>
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,5)
-# error The NTFS driver requires at least kernel 2.5.5.
-#endif
-
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/compiler.h>
#include <linux/fs.h>
+#include <linux/buffer_head.h>
#include <linux/nls.h>
#include <linux/pagemap.h>
#include <linux/smp.h>
#include "attrib.h"
#include "mft.h"
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)
-typedef long sector_t;
-#endif
-
typedef enum {
NTFS_BLOCK_SIZE = 512,
NTFS_BLOCK_SIZE_BITS = 9,