Commit 4f37393a authored by Anton Altaparmakov's avatar Anton Altaparmakov

NTFS 2.0.7 release: pure cleanups.

parent ad9f1a7e
...@@ -28,6 +28,10 @@ ToDo: ...@@ -28,6 +28,10 @@ ToDo:
- Remove much of the NULL struct element initializers. - Remove much of the NULL struct element initializers.
- Various updates to make compatible with recent kernels. - 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. 2.0.6 - Major bugfix to make compatible with other kernel changes.
......
...@@ -29,12 +29,6 @@ ...@@ -29,12 +29,6 @@
#include "ntfs.h" #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 - * end_buffer_read_file_async -
* *
......
...@@ -25,8 +25,6 @@ ...@@ -25,8 +25,6 @@
#include "ntfs.h" #include "ntfs.h"
#define MAX_BUF_PER_PAGE (PAGE_CACHE_SIZE / 512)
/** /**
* __format_mft_record - initialize an empty mft record * __format_mft_record - initialize an empty mft record
* @m: mapped, pinned and locked for writing mft record * @m: mapped, pinned and locked for writing mft record
......
...@@ -26,14 +26,11 @@ ...@@ -26,14 +26,11 @@
#include <linux/version.h> #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/kernel.h>
#include <linux/module.h> #include <linux/module.h>
#include <linux/compiler.h> #include <linux/compiler.h>
#include <linux/fs.h> #include <linux/fs.h>
#include <linux/buffer_head.h>
#include <linux/nls.h> #include <linux/nls.h>
#include <linux/pagemap.h> #include <linux/pagemap.h>
#include <linux/smp.h> #include <linux/smp.h>
...@@ -49,10 +46,6 @@ ...@@ -49,10 +46,6 @@
#include "attrib.h" #include "attrib.h"
#include "mft.h" #include "mft.h"
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)
typedef long sector_t;
#endif
typedef enum { typedef enum {
NTFS_BLOCK_SIZE = 512, NTFS_BLOCK_SIZE = 512,
NTFS_BLOCK_SIZE_BITS = 9, NTFS_BLOCK_SIZE_BITS = 9,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment