All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ext4:Make ext4_split_extent() handle error correctly.
@ 2011-05-14  7:05 Yongqiang Yang
  2011-05-16 15:08 ` Mingming Cao
  2011-05-23  0:51 ` Ted Ts'o
  0 siblings, 2 replies; 3+ messages in thread
From: Yongqiang Yang @ 2011-05-14  7:05 UTC (permalink / raw)
  To: Ted Ts'o; +Cc: Mingming Cao, Ext4 Developers List

Signed-off-by: Yongqiang Yang <xiaoqiangnk@gmail.com>
---
 fs/ext4/extents.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c
index e363f21..b7b667f 100644
--- a/fs/ext4/extents.c
+++ b/fs/ext4/extents.c
@@ -2716,6 +2716,8 @@ static int ext4_split_extent(handle_t *handle,
 				       EXT4_EXT_MARK_UNINIT2;
 		err = ext4_split_extent_at(handle, inode, path,
 				map->m_lblk + map->m_len, split_flag1, flags1);
+		if (err)
+			goto out;
 	}

 	ext4_ext_drop_refs(path);
-- 
1.7.5.1

--

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] ext4:Make ext4_split_extent() handle error correctly.
  2011-05-14  7:05 [PATCH] ext4:Make ext4_split_extent() handle error correctly Yongqiang Yang
@ 2011-05-16 15:08 ` Mingming Cao
  2011-05-23  0:51 ` Ted Ts'o
  1 sibling, 0 replies; 3+ messages in thread
From: Mingming Cao @ 2011-05-16 15:08 UTC (permalink / raw)
  To: Yongqiang Yang; +Cc: Ted Ts'o, Ext4 Developers List

On Sat, 2011-05-14 at 15:05 +0800, Yongqiang Yang wrote:
> Signed-off-by: Yongqiang Yang <xiaoqiangnk@gmail.com>

Reviewed-by: Mingming Cao <cmm@us.ibm.com>
> ---
>  fs/ext4/extents.c |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)
> 
> diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c
> index e363f21..b7b667f 100644
> --- a/fs/ext4/extents.c
> +++ b/fs/ext4/extents.c
> @@ -2716,6 +2716,8 @@ static int ext4_split_extent(handle_t *handle,
>  				       EXT4_EXT_MARK_UNINIT2;
>  		err = ext4_split_extent_at(handle, inode, path,
>  				map->m_lblk + map->m_len, split_flag1, flags1);
> +		if (err)
> +			goto out;
>  	}
> 
>  	ext4_ext_drop_refs(path);



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] ext4:Make ext4_split_extent() handle error correctly.
  2011-05-14  7:05 [PATCH] ext4:Make ext4_split_extent() handle error correctly Yongqiang Yang
  2011-05-16 15:08 ` Mingming Cao
@ 2011-05-23  0:51 ` Ted Ts'o
  1 sibling, 0 replies; 3+ messages in thread
From: Ted Ts'o @ 2011-05-23  0:51 UTC (permalink / raw)
  To: Yongqiang Yang; +Cc: Mingming Cao, Ext4 Developers List

Added to the ext4 tree, thanks.

						- Ted

On Sat, May 14, 2011 at 03:05:05PM +0800, Yongqiang Yang wrote:
> Signed-off-by: Yongqiang Yang <xiaoqiangnk@gmail.com>
> ---
>  fs/ext4/extents.c |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)
> 
> diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c
> index e363f21..b7b667f 100644
> --- a/fs/ext4/extents.c
> +++ b/fs/ext4/extents.c
> @@ -2716,6 +2716,8 @@ static int ext4_split_extent(handle_t *handle,
>  				       EXT4_EXT_MARK_UNINIT2;
>  		err = ext4_split_extent_at(handle, inode, path,
>  				map->m_lblk + map->m_len, split_flag1, flags1);
> +		if (err)
> +			goto out;
>  	}
> 
>  	ext4_ext_drop_refs(path);
> -- 
> 1.7.5.1
> 
> --

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-05-23  0:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-14  7:05 [PATCH] ext4:Make ext4_split_extent() handle error correctly Yongqiang Yang
2011-05-16 15:08 ` Mingming Cao
2011-05-23  0:51 ` Ted Ts'o

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.