mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-06 02:50:43 +00:00
logfs: don't duplicate page_symlink_inode_operations
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
11803f97f0
commit
fb417f13ae
3 changed files with 2 additions and 9 deletions
|
@ -528,7 +528,7 @@ static int logfs_symlink(struct inode *dir, struct dentry *dentry,
|
|||
if (IS_ERR(inode))
|
||||
return PTR_ERR(inode);
|
||||
|
||||
inode->i_op = &logfs_symlink_iops;
|
||||
inode->i_op = &page_symlink_inode_operations;
|
||||
inode->i_mapping->a_ops = &logfs_reg_aops;
|
||||
|
||||
return __logfs_create(dir, dentry, inode, target, destlen);
|
||||
|
@ -776,12 +776,6 @@ int logfs_replay_journal(struct super_block *sb)
|
|||
return -EIO;
|
||||
}
|
||||
|
||||
const struct inode_operations logfs_symlink_iops = {
|
||||
.readlink = generic_readlink,
|
||||
.follow_link = page_follow_link_light,
|
||||
.put_link = page_put_link,
|
||||
};
|
||||
|
||||
const struct inode_operations logfs_dir_iops = {
|
||||
.create = logfs_create,
|
||||
.link = logfs_link,
|
||||
|
|
|
@ -64,7 +64,7 @@ static void logfs_inode_setops(struct inode *inode)
|
|||
inode->i_mapping->a_ops = &logfs_reg_aops;
|
||||
break;
|
||||
case S_IFLNK:
|
||||
inode->i_op = &logfs_symlink_iops;
|
||||
inode->i_op = &page_symlink_inode_operations;
|
||||
inode->i_mapping->a_ops = &logfs_reg_aops;
|
||||
break;
|
||||
case S_IFSOCK: /* fall through */
|
||||
|
|
|
@ -495,7 +495,6 @@ static inline int logfs_get_sb_mtd(struct logfs_super *s, int mtdnr)
|
|||
#endif
|
||||
|
||||
/* dir.c */
|
||||
extern const struct inode_operations logfs_symlink_iops;
|
||||
extern const struct inode_operations logfs_dir_iops;
|
||||
extern const struct file_operations logfs_dir_fops;
|
||||
int logfs_replay_journal(struct super_block *sb);
|
||||
|
|
Loading…
Reference in a new issue