Removing of old code
Subsystems (2)
Konstantin Komarov
maintainercover Removing of old code
Some code became unused after commits.
Konstantin Komarov (2):
fs/ntfs3: Remove unnecessary functions
fs/ntfs3: Remove unnecessary includes
fs/ntfs3/attrib.c | 2 - fs/ntfs3/attrlist.c | 2 - fs/ntfs3/dir.c | 2 - fs/ntfs3/file.c | 2 - fs/ntfs3/frecord.c | 2 - fs/ntfs3/fslog.c | 2 - fs/ntfs3/fsntfs.c | 2 - fs/ntfs3/index.c | 3 -- fs/ntfs3/inode.c | 2 - fs/ntfs3/lznt.c | 1 - fs/ntfs3/namei.c | 2 - fs/ntfs3/ntfs_fs.h | 1 - fs/ntfs3/record.c | 2 - fs/ntfs3/run.c | 2 - fs/ntfs3/super.c | 4 +- fs/ntfs3/xattr.c | 96 --------------------------------------------- 16 files changed, 1 insertion(+), 126 deletions(-)
Signature · 1 line
2.33.0
Konstantin Komarov
maintainerPATCH 1/2 fs/ntfs3: Remove unnecessary functions
We don't need ntfs_xattr_get_acl and ntfs_xattr_set_acl. There are ntfs_get_acl_ex and ntfs_set_acl_ex.
--- fs/ntfs3/xattr.c | 94 ------------------------------------------------ 1 file changed, 94 deletions(-)
fs/ntfs3/xattr.c +0 -94
@@ -621,67 +621,6 @@ int ntfs_set_acl(struct user_namespace *mnt_userns, struct inode *inode,return ntfs_set_acl_ex (mnt_userns, inode, acl, type,0 ); } -static int ntfs_xattr_get_acl (struct user_namespace *mnt_userns, -struct inode *inode,int type,void *buffer, -size_t size) -{ -struct posix_acl *acl; -int err; - -if (!(inode->i_sb->s_flags &SB_POSIXACL )) { -ntfs_inode_warn (inode,"add mount option \"acl\" to use acl" ); -return -EOPNOTSUPP ; - } - - acl =ntfs_get_acl (inode, type); -if (IS_ERR (acl)) -return PTR_ERR (acl); - -if (!acl) -return -ENODATA ; - - err =posix_acl_to_xattr (mnt_userns, acl, buffer, size); -ntfs_posix_acl_release (acl); - -return err; -} - -static int ntfs_xattr_set_acl (struct user_namespace *mnt_userns, -struct inode *inode,int type,const void *value, -size_t size) -{ -struct posix_acl *acl; -int err; - -if (!(inode->i_sb->s_flags &SB_POSIXACL )) { -ntfs_inode_warn (inode,"add mount option \"acl\" to use acl" ); -return -EOPNOTSUPP ; - } - -if (!inode_owner_or_capable (mnt_userns, inode)) -return -EPERM ; - -if (!value) { - acl =NULL ; - }else { - acl =posix_acl_from_xattr (mnt_userns, value, size); -if (IS_ERR (acl)) -return PTR_ERR (acl); - -if (acl) { - err =posix_acl_valid (mnt_userns, acl); -if (err) - goto release_and_out; - } - } - - err =ntfs_set_acl (mnt_userns, inode, acl, type); - -release_and_out: -ntfs_posix_acl_release (acl); -return err; -} -/* * ntfs_init_acl - Initialize the ACLs of a new inode. *
@@ -848,23 +787,6 @@ static int ntfs_getxattr(const struct xattr_handler *handler, struct dentry *de, goto out; } -#ifdef CONFIG_NTFS3_FS_POSIX_ACL -if ((name_len ==sizeof (XATTR_NAME_POSIX_ACL_ACCESS ) -1 && - !memcmp (name,XATTR_NAME_POSIX_ACL_ACCESS , -sizeof (XATTR_NAME_POSIX_ACL_ACCESS ))) || - (name_len ==sizeof (XATTR_NAME_POSIX_ACL_DEFAULT ) -1 && - !memcmp (name,XATTR_NAME_POSIX_ACL_DEFAULT , -sizeof (XATTR_NAME_POSIX_ACL_DEFAULT )))) { -/* TODO: init_user_ns? */ - err =ntfs_xattr_get_acl ( - &init_user_ns, inode, - name_len ==sizeof (XATTR_NAME_POSIX_ACL_ACCESS ) -1 - ?ACL_TYPE_ACCESS - :ACL_TYPE_DEFAULT , - buffer, size); - goto out; - } -#endif /* Deal with NTFS extended attribute. */ err =ntfs_get_ea (inode, name, name_len, buffer, size,NULL );
@@ -977,22 +899,6 @@ static noinline int ntfs_setxattr(const struct xattr_handler *handler, goto out; } -#ifdef CONFIG_NTFS3_FS_POSIX_ACL -if ((name_len ==sizeof (XATTR_NAME_POSIX_ACL_ACCESS ) -1 && - !memcmp (name,XATTR_NAME_POSIX_ACL_ACCESS , -sizeof (XATTR_NAME_POSIX_ACL_ACCESS ))) || - (name_len ==sizeof (XATTR_NAME_POSIX_ACL_DEFAULT ) -1 && - !memcmp (name,XATTR_NAME_POSIX_ACL_DEFAULT , -sizeof (XATTR_NAME_POSIX_ACL_DEFAULT )))) { - err =ntfs_xattr_set_acl ( - mnt_userns, inode, - name_len ==sizeof (XATTR_NAME_POSIX_ACL_ACCESS ) -1 - ?ACL_TYPE_ACCESS - :ACL_TYPE_DEFAULT , - value, size); - goto out; - } -#endif /* Deal with NTFS extended attribute. */ err =ntfs_set_ea (inode, name, name_len, value, size, flags,0 );
Signature · 1 line
2.33.0
Re: [PATCH 1/2] fs/ntfs3: Remove unnecessary functions
Quoted 2 lines · Konstantin Komarov
We don't need
ntfs_xattr_get_aclandntfs_xattr_set_acl. There arentfs_get_acl_exandntfs_set_acl_ex.
I just bisect this commit after tests
"generic/099,generic/105,generic/307,generic/318,generic/319,generic/375,generic/444"
fails for me. Fails happends because mount option acl was not defined. Before they where skipped, but now fail occurs. Also generic/099 was passing if acl mount option was defined, but after this patch it also fail. Every other test fail for me as well, but that is not related to this patch.
So should we revert or do you make new patch to fix the issue or do you think we won't have any issue here?
Argillander
Quoted 127 lines
Signed-off-by Konstantin Komarov <[email protected]>--- fs/ntfs3/xattr.c | 94 ------------------------------------------------ 1 file changed, 94 deletions(-)fs/ntfs3/xattr.c +0
-94@@ -621,67 +621,6 @@ int ntfs_set_acl(struct user_namespace *mnt_userns, struct inode *inode,return ntfs_set_acl_ex (mnt_userns, inode, acl, type,0 ); } -static int ntfs_xattr_get_acl (struct user_namespace *mnt_userns, -struct inode *inode,int type,void *buffer, -size_t size) -{ -struct posix_acl *acl; -int err; - -if (!(inode->i_sb->s_flags &SB_POSIXACL )) { -ntfs_inode_warn (inode,"add mount option \"acl\" to use acl" ); -return -EOPNOTSUPP ; - } - - acl =ntfs_get_acl (inode, type); -if (IS_ERR (acl)) -return PTR_ERR (acl); - -if (!acl) -return -ENODATA ; - - err =posix_acl_to_xattr (mnt_userns, acl, buffer, size); -ntfs_posix_acl_release (acl); - -return err; -} - -static int ntfs_xattr_set_acl (struct user_namespace *mnt_userns, -struct inode *inode,int type,const void *value, -size_t size) -{ -struct posix_acl *acl; -int err; - -if (!(inode->i_sb->s_flags &SB_POSIXACL )) { -ntfs_inode_warn (inode,"add mount option \"acl\" to use acl" ); -return -EOPNOTSUPP ; - } - -if (!inode_owner_or_capable (mnt_userns, inode)) -return -EPERM ; - -if (!value) { - acl =NULL ; - }else { - acl =posix_acl_from_xattr (mnt_userns, value, size); -if (IS_ERR (acl)) -return PTR_ERR (acl); - -if (acl) { - err =posix_acl_valid (mnt_userns, acl); -if (err) - goto release_and_out; - } - } - - err =ntfs_set_acl (mnt_userns, inode, acl, type); - -release_and_out: -ntfs_posix_acl_release (acl); -return err; -} -/* * ntfs_init_acl - Initialize the ACLs of a new inode. * @@ -848,23 +787,6 @@ static int ntfs_getxattr(const struct xattr_handler *handler, struct dentry *de, goto out; } -#ifdef CONFIG_NTFS3_FS_POSIX_ACL -if ((name_len ==sizeof (XATTR_NAME_POSIX_ACL_ACCESS ) -1 && - !memcmp (name,XATTR_NAME_POSIX_ACL_ACCESS , -sizeof (XATTR_NAME_POSIX_ACL_ACCESS ))) || - (name_len ==sizeof (XATTR_NAME_POSIX_ACL_DEFAULT ) -1 && - !memcmp (name,XATTR_NAME_POSIX_ACL_DEFAULT , -sizeof (XATTR_NAME_POSIX_ACL_DEFAULT )))) { -/* TODO: init_user_ns? */ - err =ntfs_xattr_get_acl ( - &init_user_ns, inode, - name_len ==sizeof (XATTR_NAME_POSIX_ACL_ACCESS ) -1 - ?ACL_TYPE_ACCESS - :ACL_TYPE_DEFAULT , - buffer, size); - goto out; - } -#endif /* Deal with NTFS extended attribute. */ err =ntfs_get_ea (inode, name, name_len, buffer, size,NULL );@@ -977,22 +899,6 @@ static noinline int ntfs_setxattr(const struct xattr_handler *handler, goto out; } -#ifdef CONFIG_NTFS3_FS_POSIX_ACL -if ((name_len ==sizeof (XATTR_NAME_POSIX_ACL_ACCESS ) -1 && - !memcmp (name,XATTR_NAME_POSIX_ACL_ACCESS , -sizeof (XATTR_NAME_POSIX_ACL_ACCESS ))) || - (name_len ==sizeof (XATTR_NAME_POSIX_ACL_DEFAULT ) -1 && - !memcmp (name,XATTR_NAME_POSIX_ACL_DEFAULT , -sizeof (XATTR_NAME_POSIX_ACL_DEFAULT )))) { - err =ntfs_xattr_set_acl ( - mnt_userns, inode, - name_len ==sizeof (XATTR_NAME_POSIX_ACL_ACCESS ) -1 - ?ACL_TYPE_ACCESS - :ACL_TYPE_DEFAULT , - value, size); - goto out; - } -#endif /* Deal with NTFS extended attribute. */ err =ntfs_set_ea (inode, name, name_len, value, size, flags,0 );Signature · 1 line
2.33.0
Konstantin Komarov
maintainerRe: [PATCH 1/2] fs/ntfs3: Remove unnecessary functions
Quoted 14 lines · Kari Argillander
Quoted 2 lines · Konstantin Komarov
We don't need
ntfs_xattr_get_aclandntfs_xattr_set_acl. There arentfs_get_acl_exandntfs_set_acl_ex.I just bisect this commit after tests
"generic/099,generic/105,generic/307,generic/318,generic/319,generic/375,generic/444"
fails for me. Fails happends because mount option acl was not defined. Before they where skipped, but now fail occurs. Also generic/099 was passing if acl mount option was defined, but after this patch it also fail. Every other test fail for me as well, but that is not related to this patch.
Quoted 5 lines
So should we revert or do you make new patch to fix the issue or do you think we won't have any issue here?
Argillander
We skipped these tests(muted them in beginning and forgot to unmute). Thanks for pointing this out. There will be patch to fix them.
Quoted 127 lines
Quoted 127 lines
Signed-off-by Konstantin Komarov <[email protected]>--- fs/ntfs3/xattr.c | 94 ------------------------------------------------ 1 file changed, 94 deletions(-)fs/ntfs3/xattr.c +0
-94@@ -621,67 +621,6 @@ int ntfs_set_acl(struct user_namespace *mnt_userns, struct inode *inode,return ntfs_set_acl_ex (mnt_userns, inode, acl, type,0 ); } -static int ntfs_xattr_get_acl (struct user_namespace *mnt_userns, -struct inode *inode,int type,void *buffer, -size_t size) -{ -struct posix_acl *acl; -int err; - -if (!(inode->i_sb->s_flags &SB_POSIXACL )) { -ntfs_inode_warn (inode,"add mount option \"acl\" to use acl" ); -return -EOPNOTSUPP ; - } - - acl =ntfs_get_acl (inode, type); -if (IS_ERR (acl)) -return PTR_ERR (acl); - -if (!acl) -return -ENODATA ; - - err =posix_acl_to_xattr (mnt_userns, acl, buffer, size); -ntfs_posix_acl_release (acl); - -return err; -} - -static int ntfs_xattr_set_acl (struct user_namespace *mnt_userns, -struct inode *inode,int type,const void *value, -size_t size) -{ -struct posix_acl *acl; -int err; - -if (!(inode->i_sb->s_flags &SB_POSIXACL )) { -ntfs_inode_warn (inode,"add mount option \"acl\" to use acl" ); -return -EOPNOTSUPP ; - } - -if (!inode_owner_or_capable (mnt_userns, inode)) -return -EPERM ; - -if (!value) { - acl =NULL ; - }else { - acl =posix_acl_from_xattr (mnt_userns, value, size); -if (IS_ERR (acl)) -return PTR_ERR (acl); - -if (acl) { - err =posix_acl_valid (mnt_userns, acl); -if (err) - goto release_and_out; - } - } - - err =ntfs_set_acl (mnt_userns, inode, acl, type); - -release_and_out: -ntfs_posix_acl_release (acl); -return err; -} -/* * ntfs_init_acl - Initialize the ACLs of a new inode. * @@ -848,23 +787,6 @@ static int ntfs_getxattr(const struct xattr_handler *handler, struct dentry *de, goto out; } -#ifdef CONFIG_NTFS3_FS_POSIX_ACL -if ((name_len ==sizeof (XATTR_NAME_POSIX_ACL_ACCESS ) -1 && - !memcmp (name,XATTR_NAME_POSIX_ACL_ACCESS , -sizeof (XATTR_NAME_POSIX_ACL_ACCESS ))) || - (name_len ==sizeof (XATTR_NAME_POSIX_ACL_DEFAULT ) -1 && - !memcmp (name,XATTR_NAME_POSIX_ACL_DEFAULT , -sizeof (XATTR_NAME_POSIX_ACL_DEFAULT )))) { -/* TODO: init_user_ns? */ - err =ntfs_xattr_get_acl ( - &init_user_ns, inode, - name_len ==sizeof (XATTR_NAME_POSIX_ACL_ACCESS ) -1 - ?ACL_TYPE_ACCESS - :ACL_TYPE_DEFAULT , - buffer, size); - goto out; - } -#endif /* Deal with NTFS extended attribute. */ err =ntfs_get_ea (inode, name, name_len, buffer, size,NULL );@@ -977,22 +899,6 @@ static noinline int ntfs_setxattr(const struct xattr_handler *handler, goto out; } -#ifdef CONFIG_NTFS3_FS_POSIX_ACL -if ((name_len ==sizeof (XATTR_NAME_POSIX_ACL_ACCESS ) -1 && - !memcmp (name,XATTR_NAME_POSIX_ACL_ACCESS , -sizeof (XATTR_NAME_POSIX_ACL_ACCESS ))) || - (name_len ==sizeof (XATTR_NAME_POSIX_ACL_DEFAULT ) -1 && - !memcmp (name,XATTR_NAME_POSIX_ACL_DEFAULT , -sizeof (XATTR_NAME_POSIX_ACL_DEFAULT )))) { - err =ntfs_xattr_set_acl ( - mnt_userns, inode, - name_len ==sizeof (XATTR_NAME_POSIX_ACL_ACCESS ) -1 - ?ACL_TYPE_ACCESS - :ACL_TYPE_DEFAULT , - value, size); - goto out; - } -#endif /* Deal with NTFS extended attribute. */ err =ntfs_set_ea (inode, name, name_len, value, size, flags,0 );Signature · 1 line
2.33.0
Konstantin Komarov
maintainerPATCH 2/2 fs/ntfs3: Remove unnecessary includes
In reply to Konstantin KomarovAll removed includes already included from other headers.
--- fs/ntfs3/attrib.c | 2 -- fs/ntfs3/attrlist.c | 2 -- fs/ntfs3/dir.c | 2 -- fs/ntfs3/file.c | 2 -- fs/ntfs3/frecord.c | 2 -- fs/ntfs3/fslog.c | 2 -- fs/ntfs3/fsntfs.c | 2 -- fs/ntfs3/index.c | 3 --- fs/ntfs3/inode.c | 2 -- fs/ntfs3/lznt.c | 1 - fs/ntfs3/namei.c | 2 -- fs/ntfs3/ntfs_fs.h | 1 - fs/ntfs3/record.c | 2 -- fs/ntfs3/run.c | 2 -- fs/ntfs3/super.c | 4 +--- fs/ntfs3/xattr.c | 2 -- 16 files changed, 1 insertion(+), 32 deletions(-)
fs/ntfs3/attrib.c +0 -2
@@ -10,8 +10,6 @@#include <linux/slab.h> #include <linux/kernel.h> -#include "debug.h" -#include "ntfs.h" #include "ntfs_fs.h" /*
fs/ntfs3/attrlist.c +0 -2
@@ -7,8 +7,6 @@#include <linux/fs.h> -#include "debug.h" -#include "ntfs.h" #include "ntfs_fs.h" /*
fs/ntfs3/dir.c +0 -2
@@ -10,8 +10,6 @@#include <linux/fs.h> #include <linux/nls.h> -#include "debug.h" -#include "ntfs.h" #include "ntfs_fs.h" /* Convert little endian UTF-16 to NLS string. */
fs/ntfs3/file.c +0 -2
@@ -13,8 +13,6 @@#include <linux/falloc.h> #include <linux/fiemap.h> -#include "debug.h" -#include "ntfs.h" #include "ntfs_fs.h" static int ntfs_ioctl_fitrim (struct ntfs_sb_info *sbi,unsigned long arg)
fs/ntfs3/frecord.c +0 -2
@@ -9,8 +9,6 @@#include <linux/fs.h> #include <linux/vmalloc.h> -#include "debug.h" -#include "ntfs.h" #include "ntfs_fs.h" #ifdef CONFIG_NTFS3_LZX_XPRESS #include "lib/lib.h"
fs/ntfs3/fslog.c +0 -2
@@ -10,8 +10,6 @@#include <linux/random.h> #include <linux/slab.h> -#include "debug.h" -#include "ntfs.h" #include "ntfs_fs.h" /*
fs/ntfs3/fsntfs.c +0 -2
@@ -10,8 +10,6 @@#include <linux/fs.h> #include <linux/kernel.h> -#include "debug.h" -#include "ntfs.h" #include "ntfs_fs.h" // clang-format off
fs/ntfs3/index.c +0 -3
@@ -8,10 +8,7 @@#include <linux/blkdev.h> #include <linux/buffer_head.h> #include <linux/fs.h> -#include <linux/kernel.h> -#include "debug.h" -#include "ntfs.h" #include "ntfs_fs.h" static const struct INDEX_NAMES {
fs/ntfs3/inode.c +0 -2
@@ -13,8 +13,6 @@#include <linux/uio.h> #include <linux/writeback.h> -#include "debug.h" -#include "ntfs.h" #include "ntfs_fs.h" /*
fs/ntfs3/lznt.c +0 -1
@@ -11,7 +11,6 @@#include <linux/string.h> #include <linux/types.h> -#include "debug.h" #include "ntfs_fs.h" // clang-format off
fs/ntfs3/namei.c +0 -2
@@ -8,8 +8,6 @@#include <linux/fs.h> #include <linux/nls.h> -#include "debug.h" -#include "ntfs.h" #include "ntfs_fs.h" /*
fs/ntfs3/ntfs_fs.h +0 -1
@@ -29,7 +29,6 @@#include <asm/div64.h> #include <asm/page.h> -#include "debug.h" #include "ntfs.h" struct dentry ;
fs/ntfs3/record.c +0 -2
@@ -7,8 +7,6 @@#include <linux/fs.h> -#include "debug.h" -#include "ntfs.h" #include "ntfs_fs.h" static inline int compare_attr(const struct ATTRIB *left, enum ATTR_TYPE type,
fs/ntfs3/run.c +0 -2
@@ -10,8 +10,6 @@#include <linux/fs.h> #include <linux/log2.h> -#include "debug.h" -#include "ntfs.h" #include "ntfs_fs.h" /* runs_tree is a continues memory. Try to avoid big size. */
fs/ntfs3/super.c +1 -3
@@ -35,8 +35,6 @@#include <linux/seq_file.h> #include <linux/statfs.h> -#include "debug.h" -#include "ntfs.h" #include "ntfs_fs.h" #ifdef CONFIG_NTFS3_LZX_XPRESS #include "lib/lib.h"
@@ -772,7 +770,7 @@ static int ntfs_init_from_boot(struct super_block *sb, u32 sector_size,/* No way to use ntfs_get_block in this case. */ ntfs_err ( sb, -"Failed to mount 'cause NTFS's cluster size (%u) is less than media sector size (%u)" , +"Failed to mount 'cause NTFS's cluster size (%u) is less than media's sector size (%u)" , sbi->cluster_size, sector_size); goto out; }
fs/ntfs3/xattr.c +0 -2
@@ -10,8 +10,6 @@#include <linux/posix_acl_xattr.h> #include <linux/xattr.h> -#include "debug.h" -#include "ntfs.h" #include "ntfs_fs.h" // clang-format off
Signature · 1 line
2.33.0
Re: [PATCH 2/2] fs/ntfs3: Remove unnecessary includes
Quoted 1 line · Konstantin Komarov
All removed includes already included from other headers.
Nack from me. Usually in kernel both header and source file should make they own includes even when they both include same header file.
Quoted 240 lines
Signed-off-by Konstantin Komarov <[email protected]>--- fs/ntfs3/attrib.c | 2 -- fs/ntfs3/attrlist.c | 2 -- fs/ntfs3/dir.c | 2 -- fs/ntfs3/file.c | 2 -- fs/ntfs3/frecord.c | 2 -- fs/ntfs3/fslog.c | 2 -- fs/ntfs3/fsntfs.c | 2 -- fs/ntfs3/index.c | 3 --- fs/ntfs3/inode.c | 2 -- fs/ntfs3/lznt.c | 1 - fs/ntfs3/namei.c | 2 -- fs/ntfs3/ntfs_fs.h | 1 - fs/ntfs3/record.c | 2 -- fs/ntfs3/run.c | 2 -- fs/ntfs3/super.c | 4 +--- fs/ntfs3/xattr.c | 2 -- 16 files changed, 1 insertion(+), 32 deletions(-)fs/ntfs3/attrib.c +0
-2@@ -10,8 +10,6 @@#include <linux/slab.h> #include <linux/kernel.h> -#include "debug.h" -#include "ntfs.h" #include "ntfs_fs.h" /* fs/ntfs3/attrlist.c +0
-2@@ -7,8 +7,6 @@#include <linux/fs.h> -#include "debug.h" -#include "ntfs.h" #include "ntfs_fs.h" /* fs/ntfs3/dir.c +0
-2@@ -10,8 +10,6 @@#include <linux/fs.h> #include <linux/nls.h> -#include "debug.h" -#include "ntfs.h" #include "ntfs_fs.h" /* Convert little endian UTF-16 to NLS string. */ fs/ntfs3/file.c +0
-2@@ -13,8 +13,6 @@#include <linux/falloc.h> #include <linux/fiemap.h> -#include "debug.h" -#include "ntfs.h" #include "ntfs_fs.h" static int ntfs_ioctl_fitrim (struct ntfs_sb_info *sbi,unsigned long arg)fs/ntfs3/frecord.c +0
-2@@ -9,8 +9,6 @@#include <linux/fs.h> #include <linux/vmalloc.h> -#include "debug.h" -#include "ntfs.h" #include "ntfs_fs.h" #ifdef CONFIG_NTFS3_LZX_XPRESS #include "lib/lib.h" fs/ntfs3/fslog.c +0
-2@@ -10,8 +10,6 @@#include <linux/random.h> #include <linux/slab.h> -#include "debug.h" -#include "ntfs.h" #include "ntfs_fs.h" /* fs/ntfs3/fsntfs.c +0
-2@@ -10,8 +10,6 @@#include <linux/fs.h> #include <linux/kernel.h> -#include "debug.h" -#include "ntfs.h" #include "ntfs_fs.h" // clang-format off fs/ntfs3/index.c +0
-3@@ -8,10 +8,7 @@#include <linux/blkdev.h> #include <linux/buffer_head.h> #include <linux/fs.h> -#include <linux/kernel.h> -#include "debug.h" -#include "ntfs.h" #include "ntfs_fs.h" static const struct INDEX_NAMES {fs/ntfs3/inode.c +0
-2@@ -13,8 +13,6 @@#include <linux/uio.h> #include <linux/writeback.h> -#include "debug.h" -#include "ntfs.h" #include "ntfs_fs.h" /* fs/ntfs3/lznt.c +0
-1@@ -11,7 +11,6 @@#include <linux/string.h> #include <linux/types.h> -#include "debug.h" #include "ntfs_fs.h" // clang-format off fs/ntfs3/namei.c +0
-2@@ -8,8 +8,6 @@#include <linux/fs.h> #include <linux/nls.h> -#include "debug.h" -#include "ntfs.h" #include "ntfs_fs.h" /* fs/ntfs3/ntfs_fs.h +0
-1@@ -29,7 +29,6 @@#include <asm/div64.h> #include <asm/page.h> -#include "debug.h" #include "ntfs.h" struct dentry ;fs/ntfs3/record.c +0
-2@@ -7,8 +7,6 @@#include <linux/fs.h> -#include "debug.h" -#include "ntfs.h" #include "ntfs_fs.h" static inline int compare_attr(const struct ATTRIB *left, enum ATTR_TYPE type,fs/ntfs3/run.c +0
-2@@ -10,8 +10,6 @@#include <linux/fs.h> #include <linux/log2.h> -#include "debug.h" -#include "ntfs.h" #include "ntfs_fs.h" /* runs_tree is a continues memory. Try to avoid big size. */ fs/ntfs3/super.c +1
-3@@ -35,8 +35,6 @@#include <linux/seq_file.h> #include <linux/statfs.h> -#include "debug.h" -#include "ntfs.h" #include "ntfs_fs.h" #ifdef CONFIG_NTFS3_LZX_XPRESS #include "lib/lib.h" @@ -772,7 +770,7 @@ static int ntfs_init_from_boot(struct super_block *sb, u32 sector_size,/* No way to use ntfs_get_block in this case. */ ntfs_err ( sb, -"Failed to mount 'cause NTFS's cluster size (%u) is less than media sector size (%u)" , +"Failed to mount 'cause NTFS's cluster size (%u) is less than media's sector size (%u)" , sbi->cluster_size, sector_size); goto out; }fs/ntfs3/xattr.c +0
-2@@ -10,8 +10,6 @@#include <linux/posix_acl_xattr.h> #include <linux/xattr.h> -#include "debug.h" -#include "ntfs.h" #include "ntfs_fs.h" // clang-format off Signature · 1 line
2.33.0