X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=fs%2Faffs%2Fsymlink.c;h=f802256a59330d96d537ac513f636b01a81eb79c;hb=97bf2856c6014879bd04983a3e9dfcdac1e7fe85;hp=c01cd4c64a61fddb2490c97a628e9e32e0974d6c;hpb=5273a3df6485dc2ad6aa7ddd441b9a21970f003b;p=linux-2.6.git diff --git a/fs/affs/symlink.c b/fs/affs/symlink.c index c01cd4c64..f802256a5 100644 --- a/fs/affs/symlink.c +++ b/fs/affs/symlink.c @@ -8,14 +8,7 @@ * affs symlink handling code */ -#include -#include -#include -#include -#include -#include -#include -#include +#include "affs.h" static int affs_symlink_readpage(struct file *file, struct page *page) { @@ -73,12 +66,13 @@ fail: return err; } -struct address_space_operations affs_symlink_aops = { +const struct address_space_operations affs_symlink_aops = { .readpage = affs_symlink_readpage, }; struct inode_operations affs_symlink_inode_operations = { - .readlink = page_readlink, - .follow_link = page_follow_link, + .readlink = generic_readlink, + .follow_link = page_follow_link_light, + .put_link = page_put_link, .setattr = affs_notify_change, };