On 04/25, Hou Pengyang wrote:
> Signed-off-by: Hou Pengyang <houpengy...@huawei.com>
> ---
>  fs/f2fs/data.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c
> index 9bf9c7d..1d7157b 100644
> --- a/fs/f2fs/data.c
> +++ b/fs/f2fs/data.c
> @@ -1381,9 +1381,11 @@ int do_write_data_page(struct f2fs_io_info *fio)
>        */
>       if (need_inplace_update(fio)) {
>               f2fs_bug_on(fio->sbi, fio->cp_rwsem_locked);
> +             f2fs_put_dnode(&dn);
>               err = rewrite_data_page(fio);
>               trace_f2fs_do_write_data_page(fio->page, IPU);
>               set_inode_flag(inode, FI_UPDATE_WRITE);
> +             return err;
>       } else {

We don't need else phrase here.
I changed and merged it.

Thanks,

>               if (!fio->cp_rwsem_locked)
>                       f2fs_lock_op(fio->sbi);
> -- 
> 2.10.1
> 
> 
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Linux-f2fs-devel mailing list
> Linux-f2fs-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Linux-f2fs-devel mailing list
Linux-f2fs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

Reply via email to