X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=fs%2Fefs%2Fsymlink.c;h=3d9a350e3e7f6f8687726c7e962a55dbca39a3a8;hb=9464c7cf61b9433057924c36e6e02f303a00e768;hp=1d30d2ff440fa3fecb7448b25416dd8a2c13abfa;hpb=41689045f6a3cbe0550e1d34e9cc20d2e8c432ba;p=linux-2.6.git diff --git a/fs/efs/symlink.c b/fs/efs/symlink.c index 1d30d2ff4..3d9a350e3 100644 --- a/fs/efs/symlink.c +++ b/fs/efs/symlink.c @@ -22,7 +22,7 @@ static int efs_symlink_readpage(struct file *file, struct page *page) err = -ENAMETOOLONG; if (size > 2 * EFS_BLOCKSIZE) - goto fail_notlocked; + goto fail; lock_kernel(); /* read first 512 bytes of link target */ @@ -47,13 +47,12 @@ static int efs_symlink_readpage(struct file *file, struct page *page) return 0; fail: unlock_kernel(); -fail_notlocked: SetPageError(page); kunmap(page); unlock_page(page); return err; } -const struct address_space_operations efs_symlink_aops = { +struct address_space_operations efs_symlink_aops = { .readpage = efs_symlink_readpage };