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

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)