@@ -828,8 +828,8 @@ static inline struct RESTART_TABLE *extend_rsttbl(struct RESTART_TABLE *tbl,
828828 memcpy (rt + 1 , tbl + 1 , esize * used );
829829
830830 rt -> free_goal = free_goal == ~0u ?
831- cpu_to_le32 (~0u ) :
832- cpu_to_le32 (sizeof (struct RESTART_TABLE ) +
831+ cpu_to_le32 (~0u ) :
832+ cpu_to_le32 (sizeof (struct RESTART_TABLE ) +
833833 free_goal * esize );
834834
835835 if (tbl -> first_free ) {
@@ -1090,8 +1090,8 @@ static inline u64 base_lsn(struct ntfs_log *log,
10901090 << log -> file_data_bits ) +
10911091 ((((is_log_record_end (hdr ) &&
10921092 h_lsn <= le64_to_cpu (hdr -> record_hdr .last_end_lsn )) ?
1093- le16_to_cpu (hdr -> record_hdr .next_record_off ) :
1094- log -> page_size ) +
1093+ le16_to_cpu (hdr -> record_hdr .next_record_off ) :
1094+ log -> page_size ) +
10951095 lsn ) >>
10961096 3 );
10971097
@@ -1299,8 +1299,8 @@ static void log_init_pg_hdr(struct ntfs_log *log, u32 sys_page_size,
12991299 log -> clst_per_page = 1 ;
13001300
13011301 log -> first_page = major_ver >= 2 ?
1302- 0x22 * page_size :
1303- ((sys_page_size << 1 ) + (page_size << 1 ));
1302+ 0x22 * page_size :
1303+ ((sys_page_size << 1 ) + (page_size << 1 ));
13041304 log -> major_ver = major_ver ;
13051305 log -> minor_ver = minor_ver ;
13061306}
@@ -1513,18 +1513,18 @@ static u32 current_log_avail(struct ntfs_log *log)
15131513 * If there is no oldest lsn then start at the first page of the file.
15141514 */
15151515 oldest_off = (log -> l_flags & NTFSLOG_NO_OLDEST_LSN ) ?
1516- log -> first_page :
1517- (log -> oldest_lsn_off & ~log -> sys_page_mask );
1516+ log -> first_page :
1517+ (log -> oldest_lsn_off & ~log -> sys_page_mask );
15181518
15191519 /*
15201520 * We will use the next log page offset to compute the next free page.
15211521 * If we are going to reuse this page go to the next page.
15221522 * If we are at the first page then use the end of the file.
15231523 */
15241524 next_free_off = (log -> l_flags & NTFSLOG_REUSE_TAIL ) ?
1525- log -> next_page + log -> page_size :
1525+ log -> next_page + log -> page_size :
15261526 log -> next_page == log -> first_page ? log -> l_size :
1527- log -> next_page ;
1527+ log -> next_page ;
15281528
15291529 /* If the two offsets are the same then there is no available space. */
15301530 if (oldest_off == next_free_off )
@@ -1535,8 +1535,8 @@ static u32 current_log_avail(struct ntfs_log *log)
15351535 */
15361536 free_bytes =
15371537 oldest_off < next_free_off ?
1538- log -> total_avail_pages - (next_free_off - oldest_off ) :
1539- oldest_off - next_free_off ;
1538+ log -> total_avail_pages - (next_free_off - oldest_off ) :
1539+ oldest_off - next_free_off ;
15401540
15411541 free_bytes >>= log -> page_bits ;
15421542 return free_bytes * log -> reserved ;
@@ -1671,7 +1671,7 @@ static int last_log_lsn(struct ntfs_log *log)
16711671
16721672 best_lsn1 = first_tail ? base_lsn (log , first_tail , first_file_off ) : 0 ;
16731673 best_lsn2 = second_tail ? base_lsn (log , second_tail , second_file_off ) :
1674- 0 ;
1674+ 0 ;
16751675
16761676 if (first_tail && second_tail ) {
16771677 if (best_lsn1 > best_lsn2 ) {
@@ -1767,7 +1767,7 @@ static int last_log_lsn(struct ntfs_log *log)
17671767 page_cnt = page_pos = 1 ;
17681768
17691769 curpage_off = seq_base == log -> seq_num ? min (log -> next_page , page_off ) :
1770- log -> next_page ;
1770+ log -> next_page ;
17711771
17721772 wrapped_file =
17731773 curpage_off == log -> first_page &&
@@ -1826,8 +1826,8 @@ static int last_log_lsn(struct ntfs_log *log)
18261826 ((lsn_cur >> log -> file_data_bits ) +
18271827 ((curpage_off <
18281828 (lsn_to_vbo (log , lsn_cur ) & ~log -> page_mask )) ?
1829- 1 :
1830- 0 )) != expected_seq ) {
1829+ 1 :
1830+ 0 )) != expected_seq ) {
18311831 goto check_tail ;
18321832 }
18331833
@@ -2643,8 +2643,8 @@ static inline bool check_index_root(const struct ATTRIB *attr,
26432643 const struct INDEX_ROOT * root = resident_data (attr );
26442644 u8 index_bits = le32_to_cpu (root -> index_block_size ) >=
26452645 sbi -> cluster_size ?
2646- sbi -> cluster_bits :
2647- SECTOR_SHIFT ;
2646+ sbi -> cluster_bits :
2647+ SECTOR_SHIFT ;
26482648 u8 block_clst = root -> index_block_clst ;
26492649
26502650 if (le32_to_cpu (attr -> res .data_size ) < sizeof (struct INDEX_ROOT ) ||
@@ -3861,9 +3861,9 @@ int log_replay(struct ntfs_inode *ni, bool *initialized)
38613861
38623862 /* If we have a valid page then grab a pointer to the restart area. */
38633863 ra2 = rst_info .valid_page ?
3864- Add2Ptr (rst_info .r_page ,
3864+ Add2Ptr (rst_info .r_page ,
38653865 le16_to_cpu (rst_info .r_page -> ra_off )) :
3866- NULL ;
3866+ NULL ;
38673867
38683868 if (rst_info .chkdsk_was_run ||
38693869 (ra2 && ra2 -> client_idx [1 ] == LFS_NO_CLIENT_LE )) {
0 commit comments