Skip to contentSkip to conversation

fs: use sb_end_write instend of __sb_end_write

PATCH In review Fengnan Chang 2 participants 2 messages Feb 19, 2021 – Feb 24, 2021 VFS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fs: use sb_end_write instend of __sb_end_write

__sb_end_write is an internal function, use sb_end_write instead of __sb_end_write.

---
 include/linux/fs.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/fs.h +1 -1
index fd47deea7c17..6b2e6f9035a5 100644
@@ -2784,7 +2784,7 @@ static inline void file_end_write(struct file *file)
 {
 	if (!S_ISREG(file_inode(file)->i_mode))
 		return;
-	__sb_end_write(file_inode(file)->i_sb, SB_FREEZE_WRITE);
+	sb_end_write(file_inode(file)->i_sb);
 }
 
 /*
Signature · 1 line
2.29.0
reviewer Reviewed-by on v1 1/1
#1 lore raw
Quoted 3 lines · Fengnan Chang

__sb_end_write is an internal function, use sb_end_write instead of __sb_end_write.

Makes sense. You can add:

Honza

Quoted 20 lines
---
 include/linux/fs.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/fs.h +1 -1
index fd47deea7c17..6b2e6f9035a5 100644
@@ -2784,7 +2784,7 @@ static inline void file_end_write(struct file *file)
 {
 	if (!S_ISREG(file_inode(file)->i_mode))
 		return;
-	__sb_end_write(file_inode(file)->i_sb, SB_FREEZE_WRITE);
+	sb_end_write(file_inode(file)->i_sb);
 }
 
 /*
Signature · 1 line
2.29.0
Signature · 2 lines
Jan Kara <[email protected]>
SUSE Labs, CR