diff mbox series

fs: use sb_end_write instend of __sb_end_write

Message ID 20210219120149.1056-1-changfengnan@vivo.com (mailing list archive)
State New, archived
Headers show
Series fs: use sb_end_write instend of __sb_end_write | expand

Commit Message

常凤楠 Feb. 19, 2021, 12:01 p.m. UTC
__sb_end_write is an internal function, use sb_end_write instead of __sb_end_write.

Signed-off-by: Fengnan Chang <changfengnan@vivo.com>
---
 include/linux/fs.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Jan Kara Feb. 24, 2021, 2:40 p.m. UTC | #1
On Fri 19-02-21 20:01:49, Fengnan Chang wrote:
> __sb_end_write is an internal function, use sb_end_write instead of __sb_end_write.
> 
> Signed-off-by: Fengnan Chang <changfengnan@vivo.com>

Makes sense. You can add:

Reviewed-by: Jan Kara <jack@suse.cz>

								Honza

> ---
>  include/linux/fs.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/include/linux/fs.h b/include/linux/fs.h
> index fd47deea7c17..6b2e6f9035a5 100644
> --- a/include/linux/fs.h
> +++ b/include/linux/fs.h
> @@ -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);
>  }
>  
>  /*
> -- 
> 2.29.0
>
diff mbox series

Patch

diff --git a/include/linux/fs.h b/include/linux/fs.h
index fd47deea7c17..6b2e6f9035a5 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -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);
 }
 
 /*