git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fedora core 6 1.2949 + vserver 2.2.0
[linux-2.6.git]
/
fs
/
affs
/
symlink.c
diff --git
a/fs/affs/symlink.c
b/fs/affs/symlink.c
index
c01cd4c
..
f802256
100644
(file)
--- a/
fs/affs/symlink.c
+++ b/
fs/affs/symlink.c
@@
-8,14
+8,7
@@
* affs symlink handling code
*/
* affs symlink handling code
*/
-#include <linux/errno.h>
-#include <linux/fs.h>
-#include <linux/stat.h>
-#include <linux/affs_fs.h>
-#include <linux/amigaffs.h>
-#include <linux/pagemap.h>
-#include <linux/smp_lock.h>
-#include <linux/buffer_head.h>
+#include "affs.h"
static int affs_symlink_readpage(struct file *file, struct page *page)
{
static int affs_symlink_readpage(struct file *file, struct page *page)
{
@@
-73,12
+66,13
@@
fail:
return err;
}
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 = {
.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,
};
.setattr = affs_notify_change,
};