util.c (e5451c8f8330e03ad3cfa16048b4daf961af434f) | util.c (09cbfeaf1a5a67bfb3201e0c83c810cecb2efa5a) |
---|---|
1/* 2 * linux/fs/ufs/util.c 3 * 4 * Copyright (C) 1998 5 * Daniel Pirkl <daniel.pirkl@email.cz> 6 * Charles University, Faculty of Mathematics and Physics 7 */ 8 --- 247 unchanged lines hidden (view full) --- 256 goto out; 257 } 258 259 lock_page(page); 260 261 if (unlikely(page->mapping == NULL)) { 262 /* Truncate got there first */ 263 unlock_page(page); | 1/* 2 * linux/fs/ufs/util.c 3 * 4 * Copyright (C) 1998 5 * Daniel Pirkl <daniel.pirkl@email.cz> 6 * Charles University, Faculty of Mathematics and Physics 7 */ 8 --- 247 unchanged lines hidden (view full) --- 256 goto out; 257 } 258 259 lock_page(page); 260 261 if (unlikely(page->mapping == NULL)) { 262 /* Truncate got there first */ 263 unlock_page(page); |
264 page_cache_release(page); | 264 put_page(page); |
265 page = NULL; 266 goto out; 267 } 268 269 if (!PageUptodate(page) || PageError(page)) { 270 unlock_page(page); | 265 page = NULL; 266 goto out; 267 } 268 269 if (!PageUptodate(page) || PageError(page)) { 270 unlock_page(page); |
271 page_cache_release(page); | 271 put_page(page); |
272 273 printk(KERN_ERR "ufs_change_blocknr: " 274 "can not read page: ino %lu, index: %lu\n", 275 mapping->host->i_ino, index); 276 277 page = ERR_PTR(-EIO); 278 } 279 } 280out: 281 return page; 282} | 272 273 printk(KERN_ERR "ufs_change_blocknr: " 274 "can not read page: ino %lu, index: %lu\n", 275 mapping->host->i_ino, index); 276 277 page = ERR_PTR(-EIO); 278 } 279 } 280out: 281 return page; 282} |