f2fs: no need to take the address of the array of sb->s_uuid
PATCH 1/1 f2fs: no need to take the address of the array of sb->s_uuid
Keep in line with the common case since it is some weird to take the address of an array again.
--- fs/f2fs/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/f2fs/super.c +1 -1
@@ -2701,7 +2701,7 @@ static int f2fs_fill_super(struct super_block *sb, void *data, int silent) sb->s_time_gran =1 ; sb->s_flags = (sb->s_flags & ~SB_POSIXACL ) | (test_opt (sbi,POSIX_ACL ) ?SB_POSIXACL :0 ); -memcpy (&sb->s_uuid, raw_super->uuid,sizeof (raw_super->uuid)); +memcpy (sb->s_uuid, raw_super->uuid,sizeof (raw_super->uuid)); sb->s_iflags |=SB_I_CGROUPWB ;/* init f2fs-specific super block info */
Signature · 6 lines
2.12.2 ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
Jaegeuk Kim
maintainerHi Gao,
Could you please check your email settings?
It's broken.
Thanks,
Quoted 23 lines · Gao Xiang
Keep in line with the common case since it is some weird to take the address of an array again.
Signed-off-by Gao Xiang <[email protected]>--- fs/f2fs/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)fs/f2fs/super.c +1
-1@@ -2701,7 +2701,7 @@ static int f2fs_fill_super(struct super_block *sb, void *data, int silent) sb->s_time_gran = 1; sb->s_flags = (sb->s_flags & ~SB_POSIXACL ) | (test_opt (sbi,POSIX_ACL ) ?SB_POSIXACL :0 ); -memcpy (&sb->s_uuid, raw_super->uuid,sizeof (raw_super->uuid)); +memcpy (sb->s_uuid, raw_super->uuid,sizeof (raw_super->uuid)); sb->s_iflags |=SB_I_CGROUPWB ;/* init f2fs-specific super block info */ Signature · 1 line
2.12.2
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
Hi Jaegeuk,
Quoted 6 lines · Jaegeuk Kim
Hi Gao,
Could you please check your email settings?
It's broken.Thanks,Sorry to bother for the pervious email..
My business email client was just in a mess. :(
Thanks,
Quoted 10 lines · Gao Xiang
Quoted 8 lines
Keep in line with the common case since it is some weird to take the address of an array again.
Signed-off-by Gao Xiang <[email protected]>--- fs/f2fs/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 15 lines
Quoted 15 lines
fs/f2fs/super.c +1
-1@@ -2701,7 +2701,7 @@ static int f2fs_fill_super(struct super_block *sb, void *data, int silent) sb->s_time_gran = 1; sb->s_flags = (sb->s_flags & ~SB_POSIXACL ) | (test_opt (sbi,POSIX_ACL ) ?SB_POSIXACL :0 ); -memcpy (&sb->s_uuid, raw_super->uuid,sizeof (raw_super->uuid)); +memcpy (sb->s_uuid, raw_super->uuid,sizeof (raw_super->uuid)); sb->s_iflags |=SB_I_CGROUPWB ;/* init f2fs-specific super block info */ Signature · 1 line
2.12.2
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot