Skip to contentSkip to conversation

Fs: Ext2: xip.h: fixed coding style issues

PATCH In review Tommy Kurby 2 participants 2 messages Sep 22, 2014 – Sep 23, 2014 ext2 file system

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fs: Ext2: xip.h: fixed coding style issues

Fixed coding style issues.

---
 fs/ext2/xip.h | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
fs/ext2/xip.h +4 -3
index 18b34d2..57b479b 100644
@@ -6,12 +6,13 @@
  */
 
 #ifdef CONFIG_EXT2_FS_XIP
-extern void ext2_xip_verify_sb (struct super_block *);
-extern int ext2_clear_xip_target (struct inode *, sector_t);
+extern void ext2_xip_verify_sb(struct super_block *);
+extern int ext2_clear_xip_target(struct inode *, sector_t);
 
-static inline int ext2_use_xip (struct super_block *sb)
+static inline int ext2_use_xip(struct super_block *sb)
 {
 	struct ext2_sb_info *sbi = EXT2_SB(sb);
+
 	return (sbi->s_mount_opt & EXT2_MOUNT_XIP);
 }
 int ext2_get_xip_mem(struct address_space *, pgoff_t, int,
Signature · 1 line
2.1.0
#1 lore raw
Quoted 3 lines · Tommy Kurby

Fixed coding style issues.

Hum, I think Matthew Wilcox's patches change this area as well and they
actually also do something useful. So I prefer not to merge this trivial cleanup to not make Matthew's life unnecesarily harder.

Honza

Quoted 28 lines
---
 fs/ext2/xip.h | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
fs/ext2/xip.h +4 -3
index 18b34d2..57b479b 100644
@@ -6,12 +6,13 @@
  */
 
 #ifdef CONFIG_EXT2_FS_XIP
-extern void ext2_xip_verify_sb (struct super_block *);
-extern int ext2_clear_xip_target (struct inode *, sector_t);
+extern void ext2_xip_verify_sb(struct super_block *);
+extern int ext2_clear_xip_target(struct inode *, sector_t);
 
-static inline int ext2_use_xip (struct super_block *sb)
+static inline int ext2_use_xip(struct super_block *sb)
 {
 	struct ext2_sb_info *sbi = EXT2_SB(sb);
+
 	return (sbi->s_mount_opt & EXT2_MOUNT_XIP);
 }
 int ext2_get_xip_mem(struct address_space *, pgoff_t, int,
Signature · 1 line
2.1.0
Signature · 2 lines
Jan Kara <[email protected]>
SUSE Labs, CR