]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - fs/ufs/util.c
[PATCH] ufs: handle truncated pages
[karo-tx-linux.git] / fs / ufs / util.c
index 005d6815adf56131564b9893ac1921748021702b..22f820a9b15c782dace5e86fc2a6bf9d9ad74ab0 100644 (file)
@@ -251,7 +251,6 @@ struct page *ufs_get_locked_page(struct address_space *mapping,
 {
        struct page *page;
 
-try_again:
        page = find_lock_page(mapping, index);
        if (!page) {
                page = read_cache_page(mapping, index,
@@ -271,7 +270,8 @@ try_again:
                        /* Truncate got there first */
                        unlock_page(page);
                        page_cache_release(page);
-                       goto try_again;
+                       page = NULL;
+                       goto out;
                }
 
                if (!PageUptodate(page) || PageError(page)) {