File tree Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -503,7 +503,7 @@ static int ntfs_extend_mft(struct ntfs_sb_info *sbi)
503
503
struct ATTRIB * attr ;
504
504
struct wnd_bitmap * wnd = & sbi -> mft .bitmap ;
505
505
506
- new_mft_total = (wnd -> nbits + MFT_INCREASE_CHUNK + 127 ) & ( CLST )~ 127 ;
506
+ new_mft_total = ALIGN (wnd -> nbits + NTFS_MFT_INCREASE_STEP , 128 ) ;
507
507
new_mft_bytes = (u64 )new_mft_total << sbi -> record_bits ;
508
508
509
509
/* Step 1: Resize $MFT::DATA. */
Original file line number Diff line number Diff line change @@ -84,7 +84,6 @@ typedef u32 CLST;
84
84
85
85
#define COMPRESSION_UNIT 4
86
86
#define COMPRESS_MAX_CLUSTER 0x1000
87
- #define MFT_INCREASE_CHUNK 1024
88
87
89
88
enum RECORD_NUM {
90
89
MFT_REC_MFT = 0 ,
Original file line number Diff line number Diff line change @@ -199,6 +199,8 @@ struct ntfs_index {
199
199
200
200
/* Minimum MFT zone. */
201
201
#define NTFS_MIN_MFT_ZONE 100
202
+ /* Step to increase the MFT. */
203
+ #define NTFS_MFT_INCREASE_STEP 1024
202
204
203
205
/* Ntfs file system in-core superblock data. */
204
206
struct ntfs_sb_info {
You can’t perform that action at this time.
0 commit comments