namei.c (e219aafe50fd546b8686582ddbafd24c3c2eda04) namei.c (fceef393a538134f03b778c5d2519e670269342f)
1/*
2 * namei.c - NILFS pathname lookup operations.
3 *
4 * Copyright (C) 2005-2008 Nippon Telegraph and Telephone Corporation.
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or

--- 147 unchanged lines hidden (view full) ---

156
157 inode = nilfs_new_inode(dir, S_IFLNK | S_IRWXUGO);
158 err = PTR_ERR(inode);
159 if (IS_ERR(inode))
160 goto out;
161
162 /* slow symlink */
163 inode->i_op = &nilfs_symlink_inode_operations;
1/*
2 * namei.c - NILFS pathname lookup operations.
3 *
4 * Copyright (C) 2005-2008 Nippon Telegraph and Telephone Corporation.
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or

--- 147 unchanged lines hidden (view full) ---

156
157 inode = nilfs_new_inode(dir, S_IFLNK | S_IRWXUGO);
158 err = PTR_ERR(inode);
159 if (IS_ERR(inode))
160 goto out;
161
162 /* slow symlink */
163 inode->i_op = &nilfs_symlink_inode_operations;
164 inode_nohighmem(inode);
164 inode->i_mapping->a_ops = &nilfs_aops;
165 err = page_symlink(inode, symname, l);
166 if (err)
167 goto out_fail;
168
169 /* mark_inode_dirty(inode); */
170 /* page_symlink() do this */
171

--- 391 unchanged lines hidden (view full) ---

563
564const struct inode_operations nilfs_special_inode_operations = {
565 .setattr = nilfs_setattr,
566 .permission = nilfs_permission,
567};
568
569const struct inode_operations nilfs_symlink_inode_operations = {
570 .readlink = generic_readlink,
165 inode->i_mapping->a_ops = &nilfs_aops;
166 err = page_symlink(inode, symname, l);
167 if (err)
168 goto out_fail;
169
170 /* mark_inode_dirty(inode); */
171 /* page_symlink() do this */
172

--- 391 unchanged lines hidden (view full) ---

564
565const struct inode_operations nilfs_special_inode_operations = {
566 .setattr = nilfs_setattr,
567 .permission = nilfs_permission,
568};
569
570const struct inode_operations nilfs_symlink_inode_operations = {
571 .readlink = generic_readlink,
571 .follow_link = page_follow_link_light,
572 .put_link = page_put_link,
572 .get_link = page_get_link,
573 .permission = nilfs_permission,
574};
575
576const struct export_operations nilfs_export_ops = {
577 .encode_fh = nilfs_encode_fh,
578 .fh_to_dentry = nilfs_fh_to_dentry,
579 .fh_to_parent = nilfs_fh_to_parent,
580 .get_parent = nilfs_get_parent,
581};
573 .permission = nilfs_permission,
574};
575
576const struct export_operations nilfs_export_ops = {
577 .encode_fh = nilfs_encode_fh,
578 .fh_to_dentry = nilfs_fh_to_dentry,
579 .fh_to_parent = nilfs_fh_to_parent,
580 .get_parent = nilfs_get_parent,
581};