patch-2.4.3 linux/fs/reiserfs/ioctl.c
Next file: linux/fs/reiserfs/stree.c
Previous file: linux/fs/reiserfs/inode.c
Back to the patch index
Back to the overall index
- Lines: 11
- Date:
Wed Mar 21 20:28:56 2001
- Orig file:
v2.4.2/linux/fs/reiserfs/ioctl.c
- Orig date:
Sat Feb 3 19:51:31 2001
diff -u --recursive --new-file v2.4.2/linux/fs/reiserfs/ioctl.c linux/fs/reiserfs/ioctl.c
@@ -77,8 +77,8 @@
*/
index = inode->i_size >> PAGE_CACHE_SHIFT ;
page = grab_cache_page(inode->i_mapping, index) ;
- retval = PTR_ERR(page) ;
- if (IS_ERR(page)) {
+ retval = -ENOMEM;
+ if (!page) {
goto out ;
}
retval = reiserfs_prepare_write(NULL, page, write_from, blocksize) ;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)