aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4/inode.c
diff options
context:
space:
mode:
authorYongqiang Yang <xiaoqiangnk@gmail.com>2011-10-31 17:54:36 -0400
committerTheodore Ts'o <tytso@mit.edu>2011-10-31 17:54:36 -0400
commite260daf27902b2189a9198f5b64fa4567939bb5b (patch)
treea14c395dc6d305b39ee595df66dd343000daf213 /fs/ext4/inode.c
parent0edeb71dc9133bfb505d3bf59642e07cd936613e (diff)
ext4: move vars to local scope in ext4_discard_partial_page_buffers_no_lock()
Signed-off-by: Yongqiang Yang <xiaoqiangnk@gmail.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/inode.c')
-rw-r--r--fs/ext4/inode.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c
index 60af5126eb0..f60b459b27d 100644
--- a/fs/ext4/inode.c
+++ b/fs/ext4/inode.c
@@ -3179,7 +3179,6 @@ int ext4_discard_partial_page_buffers_no_lock(handle_t *handle,
3179 ext4_fsblk_t index = from >> PAGE_CACHE_SHIFT; 3179 ext4_fsblk_t index = from >> PAGE_CACHE_SHIFT;
3180 unsigned int offset = from & (PAGE_CACHE_SIZE-1); 3180 unsigned int offset = from & (PAGE_CACHE_SIZE-1);
3181 unsigned int blocksize, max, pos; 3181 unsigned int blocksize, max, pos;
3182 unsigned int end_of_block, range_to_discard;
3183 ext4_lblk_t iblock; 3182 ext4_lblk_t iblock;
3184 struct buffer_head *bh; 3183 struct buffer_head *bh;
3185 int err = 0; 3184 int err = 0;
@@ -3231,6 +3230,8 @@ int ext4_discard_partial_page_buffers_no_lock(handle_t *handle,
3231 3230
3232 pos = offset; 3231 pos = offset;
3233 while (pos < offset + length) { 3232 while (pos < offset + length) {
3233 unsigned int end_of_block, range_to_discard;
3234
3234 err = 0; 3235 err = 0;
3235 3236
3236 /* The length of space left to zero and unmap */ 3237 /* The length of space left to zero and unmap */