@@ -488,7 +488,6 @@ static ssize_t ntfs3_label_write(struct file *file, const char __user *buffer,
488488{
489489 int err ;
490490 struct super_block * sb = pde_data (file_inode (file ));
491- struct ntfs_sb_info * sbi = sb -> s_fs_info ;
492491 ssize_t ret = count ;
493492 u8 * label = kmalloc (count , GFP_NOFS );
494493
@@ -502,7 +501,7 @@ static ssize_t ntfs3_label_write(struct file *file, const char __user *buffer,
502501 while (ret > 0 && label [ret - 1 ] == '\n' )
503502 ret -= 1 ;
504503
505- err = ntfs_set_label (sbi , label , ret );
504+ err = ntfs_set_label (sb -> s_fs_info , label , ret );
506505
507506 if (err < 0 ) {
508507 ntfs_err (sb , "failed (%d) to write label" , err );
@@ -1082,10 +1081,10 @@ static int ntfs_init_from_boot(struct super_block *sb, u32 sector_size,
10821081
10831082 if (bh -> b_blocknr && !sb_rdonly (sb )) {
10841083 /*
1085- * Alternative boot is ok but primary is not ok.
1086- * Do not update primary boot here 'cause it may be faked boot.
1087- * Let ntfs to be mounted and update boot later.
1088- */
1084+ * Alternative boot is ok but primary is not ok.
1085+ * Do not update primary boot here 'cause it may be faked boot.
1086+ * Let ntfs to be mounted and update boot later.
1087+ */
10891088 * boot2 = kmemdup (boot , sizeof (* boot ), GFP_NOFS | __GFP_NOWARN );
10901089 }
10911090
@@ -1549,9 +1548,9 @@ static int ntfs_fill_super(struct super_block *sb, struct fs_context *fc)
15491548
15501549 if (boot2 ) {
15511550 /*
1552- * Alternative boot is ok but primary is not ok.
1553- * Volume is recognized as NTFS. Update primary boot.
1554- */
1551+ * Alternative boot is ok but primary is not ok.
1552+ * Volume is recognized as NTFS. Update primary boot.
1553+ */
15551554 struct buffer_head * bh0 = sb_getblk (sb , 0 );
15561555 if (bh0 ) {
15571556 if (buffer_locked (bh0 ))
@@ -1785,7 +1784,6 @@ static int __init init_ntfs_fs(void)
17851784 if (IS_ENABLED (CONFIG_NTFS3_LZX_XPRESS ))
17861785 pr_info ("ntfs3: Read-only LZX/Xpress compression included\n" );
17871786
1788-
17891787#ifdef CONFIG_PROC_FS
17901788 /* Create "/proc/fs/ntfs3" */
17911789 proc_info_root = proc_mkdir ("fs/ntfs3" , NULL );
@@ -1827,7 +1825,6 @@ static void __exit exit_ntfs_fs(void)
18271825 if (proc_info_root )
18281826 remove_proc_entry ("fs/ntfs3" , NULL );
18291827#endif
1830-
18311828}
18321829
18331830MODULE_LICENSE ("GPL" );
0 commit comments