Commit 564c36d2 authored by Anton Altaparmakov's avatar Anton Altaparmakov

NTFS: 2.1.11 - Driver internal cleanups.

parent daabacc2
...@@ -273,6 +273,8 @@ ChangeLog ...@@ -273,6 +273,8 @@ ChangeLog
Note, a technical ChangeLog aimed at kernel hackers is in fs/ntfs/ChangeLog. Note, a technical ChangeLog aimed at kernel hackers is in fs/ntfs/ChangeLog.
2.1.11:
- Driver internal cleanups.
2.1.10: 2.1.10:
- Force read-only (re)mounting of volumes with unsupported volume - Force read-only (re)mounting of volumes with unsupported volume
flags and various cleanups. flags and various cleanups.
......
...@@ -25,9 +25,12 @@ ToDo: ...@@ -25,9 +25,12 @@ ToDo:
sufficient for synchronisation here. We then just need to make sure sufficient for synchronisation here. We then just need to make sure
ntfs_readpage/writepage/truncate interoperate properly with us. ntfs_readpage/writepage/truncate interoperate properly with us.
2.1.11 - WIP 2.1.11 - Driver internal cleanups.
- Only build logfile.o if building the driver with read-write support. - Only build logfile.o if building the driver with read-write support.
- Really final white space cleanups.
- Use generic_ffs() instead of ffs() in logfile.c which allows the
log_page_size variable to be optimized by gcc into a constant.
2.1.10 - Force read-only (re)mounting of volumes with unsupported volume flags. 2.1.10 - Force read-only (re)mounting of volumes with unsupported volume flags.
......
...@@ -5,7 +5,7 @@ obj-$(CONFIG_NTFS_FS) += ntfs.o ...@@ -5,7 +5,7 @@ obj-$(CONFIG_NTFS_FS) += ntfs.o
ntfs-objs := aops.o attrib.o compress.o debug.o dir.o file.o inode.o mft.o \ ntfs-objs := aops.o attrib.o compress.o debug.o dir.o file.o inode.o mft.o \
mst.o namei.o super.o sysctl.o unistr.o upcase.o mst.o namei.o super.o sysctl.o unistr.o upcase.o
EXTRA_CFLAGS = -DNTFS_VERSION=\"2.1.11-WIP\" EXTRA_CFLAGS = -DNTFS_VERSION=\"2.1.11\"
ifeq ($(CONFIG_NTFS_DEBUG),y) ifeq ($(CONFIG_NTFS_DEBUG),y)
EXTRA_CFLAGS += -DDEBUG EXTRA_CFLAGS += -DDEBUG
......
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
#include <linux/fs.h> #include <linux/fs.h>
#include <linux/highmem.h> #include <linux/highmem.h>
#include <linux/buffer_head.h> #include <linux/buffer_head.h>
#include <linux/bitops.h>
#include "logfile.h" #include "logfile.h"
#include "volume.h" #include "volume.h"
...@@ -455,7 +456,11 @@ BOOL ntfs_check_logfile(struct inode *log_vi) ...@@ -455,7 +456,11 @@ BOOL ntfs_check_logfile(struct inode *log_vi)
else else
log_page_size = PAGE_CACHE_SIZE; log_page_size = PAGE_CACHE_SIZE;
log_page_mask = log_page_size - 1; log_page_mask = log_page_size - 1;
log_page_bits = ffs(log_page_size) - 1; /*
* Use generic_ffs() instead of ffs() to enable the compiler to
* optimize log_page_size and log_page_bits into constants.
*/
log_page_bits = generic_ffs(log_page_size) - 1;
size &= ~(log_page_size - 1); size &= ~(log_page_size - 1);
/* /*
* Ensure the log file is big enough to store at least the two restart * Ensure the log file is big enough to store at least the two restart
......
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