mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/1] ext4: correcting copy paste error.
       [not found] <CGME20170717061114epcas5p3b984798b45e9b87ebd8b5586e3bdff9c@epcas5p3.samsung.com>
@ 2017-07-17  6:07 ` Maninder Singh
  2017-08-06  5:33   ` Theodore Ts'o
  0 siblings, 1 reply; 2+ messages in thread
From: Maninder Singh @ 2017-07-17  6:07 UTC (permalink / raw)
  To: tytso, adilger.kernel
  Cc: linux-ext4, linux-kernel, pankaj.m, Maninder Singh, Vaneet Narang

Error reported by static tool for copy paste
issue, fixing the same.

Signed-off-by: Maninder Singh <maninder1.s@samsung.com>
Signed-off-by: Vaneet Narang <v.narang@samsung.com>
---
 fs/ext4/extents.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c
index 2a97dff..5d337ca 100644
--- a/fs/ext4/extents.c
+++ b/fs/ext4/extents.c
@@ -5837,7 +5837,7 @@ int ext4_insert_range(struct inode *inode, loff_t offset, loff_t len)
 			if (e1_blk > lblk1)
 				next1 = e1_blk;
 			if (e2_blk > lblk2)
-				next2 = e1_blk;
+				next2 = e2_blk;
 			/* Do we have something to swap */
 			if (next1 == EXT_MAX_BLOCKS || next2 == EXT_MAX_BLOCKS)
 				goto finish;
-- 
1.9.1

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

* Re: [PATCH 1/1] ext4: correcting copy paste error.
  2017-07-17  6:07 ` [PATCH 1/1] ext4: correcting copy paste error Maninder Singh
@ 2017-08-06  5:33   ` Theodore Ts'o
  0 siblings, 0 replies; 2+ messages in thread
From: Theodore Ts'o @ 2017-08-06  5:33 UTC (permalink / raw)
  To: Maninder Singh
  Cc: adilger.kernel, linux-ext4, linux-kernel, pankaj.m, Vaneet Narang

On Mon, Jul 17, 2017 at 11:37:44AM +0530, Maninder Singh wrote:
> Error reported by static tool for copy paste
> issue, fixing the same.
> 
> Signed-off-by: Maninder Singh <maninder1.s@samsung.com>
> Signed-off-by: Vaneet Narang <v.narang@samsung.com>

Thanks, applied.

					- Ted

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

end of thread, other threads:[~2017-08-06  5:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <CGME20170717061114epcas5p3b984798b45e9b87ebd8b5586e3bdff9c@epcas5p3.samsung.com>
2017-07-17  6:07 ` [PATCH 1/1] ext4: correcting copy paste error Maninder Singh
2017-08-06  5:33   ` Theodore Ts'o

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®