Skip to contentSkip to conversation

remove write-only variables from ext4_ordered_write_end

PATCH In review Eric Sandeen 2 participants 2 messages Jul 31, 2008 ext4 file system

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 remove write-only variables from ext4_ordered_write_end

from & to are unused.

---

fs/ext4/inode.c +0 -3
Index: linux-2.6/fs/ext4/inode.c
===================================================================
@@ -1336,12 +1336,8 @@ static int ext4_ordered_write_end(struct
 {
 	handle_t *handle = ext4_journal_current_handle();
 	struct inode *inode = mapping->host;
-	unsigned from, to;
 	int ret = 0, ret2;
 
-	from = pos & (PAGE_CACHE_SIZE - 1);
-	to = from + len;
Acked-by on v1 1/1
#1 lore raw
Quoted 4 lines · 在 2008-07-31四的 12:57 -0500,Eric Sandeen写道:

from & to are unused.

---

Quoted 20 lines

Index: linux-2.6/fs/ext4/inode.c
===================================================================

fs/ext4/inode.c +0 -5
@@ -1336,12 +1336,8 @@ static int ext4_ordered_write_end(struct
 {
 	handle_t *handle = ext4_journal_current_handle();
 	struct inode *inode = mapping->host;
-	unsigned from, to;
 	int ret = 0, ret2;
 
-	from = pos & (PAGE_CACHE_SIZE - 1);
-	to = from + len;
-
 	ret = ext4_jbd2_file_inode(handle, inode);
 
 	if (ret == 0) {
 
--
Quoted 3 lines

To unsubscribe from this list: send the line "unsubscribe linux-ext4" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html