Commit 18017479 authored by Eric Engestrom's avatar Eric Engestrom Committed by Theodore Ts'o

ext4: remove unused variable

Signed-off-by: default avatarEric Engestrom <eric.engestrom@imgtec.com>
parent 3c816ded
...@@ -628,7 +628,7 @@ int ext4_check_all_de(struct inode *dir, struct buffer_head *bh, void *buf, ...@@ -628,7 +628,7 @@ int ext4_check_all_de(struct inode *dir, struct buffer_head *bh, void *buf,
int buf_size) int buf_size)
{ {
struct ext4_dir_entry_2 *de; struct ext4_dir_entry_2 *de;
int nlen, rlen; int rlen;
unsigned int offset = 0; unsigned int offset = 0;
char *top; char *top;
...@@ -638,7 +638,6 @@ int ext4_check_all_de(struct inode *dir, struct buffer_head *bh, void *buf, ...@@ -638,7 +638,6 @@ int ext4_check_all_de(struct inode *dir, struct buffer_head *bh, void *buf,
if (ext4_check_dir_entry(dir, NULL, de, bh, if (ext4_check_dir_entry(dir, NULL, de, bh,
buf, buf_size, offset)) buf, buf_size, offset))
return -EFSCORRUPTED; return -EFSCORRUPTED;
nlen = EXT4_DIR_REC_LEN(de->name_len);
rlen = ext4_rec_len_from_disk(de->rec_len, buf_size); rlen = ext4_rec_len_from_disk(de->rec_len, buf_size);
de = (struct ext4_dir_entry_2 *)((char *)de + rlen); de = (struct ext4_dir_entry_2 *)((char *)de + rlen);
offset += rlen; offset += rlen;
......
...@@ -405,14 +405,12 @@ int ext4_bio_write_page(struct ext4_io_submit *io, ...@@ -405,14 +405,12 @@ int ext4_bio_write_page(struct ext4_io_submit *io,
{ {
struct page *data_page = NULL; struct page *data_page = NULL;
struct inode *inode = page->mapping->host; struct inode *inode = page->mapping->host;
unsigned block_start, blocksize; unsigned block_start;
struct buffer_head *bh, *head; struct buffer_head *bh, *head;
int ret = 0; int ret = 0;
int nr_submitted = 0; int nr_submitted = 0;
int nr_to_submit = 0; int nr_to_submit = 0;
blocksize = 1 << inode->i_blkbits;
BUG_ON(!PageLocked(page)); BUG_ON(!PageLocked(page));
BUG_ON(PageWriteback(page)); BUG_ON(PageWriteback(page));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment