2 * linux/fs/9p/vfs_inode_dotl.c
4 * This file contains vfs inode ops for the 9P2000.L protocol.
6 * Copyright (C) 2004 by Eric Van Hensbergen <ericvh@gmail.com>
7 * Copyright (C) 2002 by Ron Minnich <rminnich@lanl.gov>
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License version 2
11 * as published by the Free Software Foundation.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to:
20 * Free Software Foundation
21 * 51 Franklin Street, Fifth Floor
22 * Boston, MA 02111-1301 USA
26 #include <linux/module.h>
27 #include <linux/errno.h>
29 #include <linux/file.h>
30 #include <linux/pagemap.h>
31 #include <linux/stat.h>
32 #include <linux/string.h>
33 #include <linux/inet.h>
34 #include <linux/namei.h>
35 #include <linux/idr.h>
36 #include <linux/sched.h>
37 #include <linux/slab.h>
38 #include <linux/xattr.h>
39 #include <linux/posix_acl.h>
40 #include <net/9p/9p.h>
41 #include <net/9p/client.h>
51 v9fs_vfs_mknod_dotl(struct inode *dir, struct dentry *dentry, int omode,
55 * v9fs_get_fsgid_for_create - Helper function to get the gid for creating a
56 * new file system object. This checks the S_ISGID to determine the owning
57 * group of the new file system object.
60 static gid_t v9fs_get_fsgid_for_create(struct inode *dir_inode)
62 BUG_ON(dir_inode == NULL);
64 if (dir_inode->i_mode & S_ISGID) {
65 /* set_gid bit is set.*/
66 return dir_inode->i_gid;
68 return current_fsgid();
72 * v9fs_dentry_from_dir_inode - helper function to get the dentry from
77 static struct dentry *v9fs_dentry_from_dir_inode(struct inode *inode)
79 struct dentry *dentry;
81 spin_lock(&inode->i_lock);
82 /* Directory should have only one entry. */
83 BUG_ON(S_ISDIR(inode->i_mode) && !list_is_singular(&inode->i_dentry));
84 dentry = list_entry(inode->i_dentry.next, struct dentry, d_alias);
85 spin_unlock(&inode->i_lock);
89 static struct inode *v9fs_qid_iget_dotl(struct super_block *sb,
92 struct p9_stat_dotl *st)
97 struct v9fs_session_info *v9ses = sb->s_fs_info;
99 i_ino = v9fs_qid2ino(qid);
100 inode = iget_locked(sb, i_ino);
102 return ERR_PTR(-ENOMEM);
103 if (!(inode->i_state & I_NEW))
106 * initialize the inode with the stat info
107 * FIXME!! we may need support for stale inodes
110 retval = v9fs_init_inode(v9ses, inode, st->st_mode);
114 v9fs_stat2inode_dotl(st, inode);
115 #ifdef CONFIG_9P_FSCACHE
116 v9fs_fscache_set_key(inode, &st->qid);
117 v9fs_cache_inode_get_cookie(inode);
119 retval = v9fs_get_acl(inode, fid);
123 unlock_new_inode(inode);
126 unlock_new_inode(inode);
128 return ERR_PTR(retval);
133 v9fs_inode_from_fid_dotl(struct v9fs_session_info *v9ses, struct p9_fid *fid,
134 struct super_block *sb)
136 struct p9_stat_dotl *st;
137 struct inode *inode = NULL;
139 st = p9_client_getattr_dotl(fid, P9_STATS_BASIC);
143 inode = v9fs_qid_iget_dotl(sb, &st->qid, fid, st);
149 * v9fs_vfs_create_dotl - VFS hook to create files for 9P2000.L protocol.
150 * @dir: directory inode that is being created
151 * @dentry: dentry that is being deleted
152 * @mode: create permissions
153 * @nd: path information
158 v9fs_vfs_create_dotl(struct inode *dir, struct dentry *dentry, int omode,
159 struct nameidata *nd)
169 struct p9_fid *fid = NULL;
170 struct v9fs_inode *v9inode;
171 struct p9_fid *dfid, *ofid, *inode_fid;
172 struct v9fs_session_info *v9ses;
173 struct posix_acl *pacl = NULL, *dacl = NULL;
175 v9ses = v9fs_inode2v9ses(dir);
176 if (nd && nd->flags & LOOKUP_OPEN)
177 flags = nd->intent.open.flags - 1;
180 * create call without LOOKUP_OPEN is due
181 * to mknod of regular files. So use mknod
184 return v9fs_vfs_mknod_dotl(dir, dentry, omode, 0);
187 name = (char *) dentry->d_name.name;
188 P9_DPRINTK(P9_DEBUG_VFS, "v9fs_vfs_create_dotl: name:%s flags:0x%x "
189 "mode:0x%x\n", name, flags, omode);
191 dfid = v9fs_fid_lookup(dentry->d_parent);
194 P9_DPRINTK(P9_DEBUG_VFS, "fid lookup failed %d\n", err);
198 /* clone a fid to use for creation */
199 ofid = p9_client_walk(dfid, 0, NULL, 1);
202 P9_DPRINTK(P9_DEBUG_VFS, "p9_client_walk failed %d\n", err);
206 gid = v9fs_get_fsgid_for_create(dir);
209 /* Update mode based on ACL value */
210 err = v9fs_acl_mode(dir, &mode, &dacl, &pacl);
212 P9_DPRINTK(P9_DEBUG_VFS,
213 "Failed to get acl values in creat %d\n", err);
216 err = p9_client_create_dotl(ofid, name, flags, mode, gid, &qid);
218 P9_DPRINTK(P9_DEBUG_VFS,
219 "p9_client_open_dotl failed in creat %d\n",
223 v9fs_invalidate_inode_attr(dir);
225 /* instantiate inode and assign the unopened fid to the dentry */
226 fid = p9_client_walk(dfid, 1, &name, 1);
229 P9_DPRINTK(P9_DEBUG_VFS, "p9_client_walk failed %d\n", err);
233 inode = v9fs_get_inode_from_fid(v9ses, fid, dir->i_sb);
235 err = PTR_ERR(inode);
236 P9_DPRINTK(P9_DEBUG_VFS, "inode creation failed %d\n", err);
239 d_instantiate(dentry, inode);
240 err = v9fs_fid_add(dentry, fid);
244 /* Now set the ACL based on the default value */
245 v9fs_set_create_acl(dentry, dacl, pacl);
247 v9inode = V9FS_I(inode);
248 if (v9ses->cache && !v9inode->writeback_fid) {
250 * clone a fid and add it to writeback_fid
251 * we do it during open time instead of
252 * page dirty time via write_begin/page_mkwrite
253 * because we want write after unlink usecase
256 inode_fid = v9fs_writeback_fid(dentry);
257 if (IS_ERR(inode_fid)) {
258 err = PTR_ERR(inode_fid);
261 v9inode->writeback_fid = (void *) inode_fid;
263 /* Since we are opening a file, assign the open fid to the file */
264 filp = lookup_instantiate_filp(nd, dentry, generic_file_open);
266 p9_client_clunk(ofid);
267 return PTR_ERR(filp);
269 filp->private_data = ofid;
270 #ifdef CONFIG_9P_FSCACHE
272 v9fs_cache_inode_set_cookie(inode, filp);
278 p9_client_clunk(ofid);
280 p9_client_clunk(fid);
285 * v9fs_vfs_mkdir_dotl - VFS mkdir hook to create a directory
286 * @dir: inode that is being unlinked
287 * @dentry: dentry that is being unlinked
288 * @mode: mode for new directory
292 static int v9fs_vfs_mkdir_dotl(struct inode *dir,
293 struct dentry *dentry, int omode)
296 struct v9fs_session_info *v9ses;
297 struct p9_fid *fid = NULL, *dfid = NULL;
303 struct dentry *dir_dentry;
304 struct posix_acl *dacl = NULL, *pacl = NULL;
306 P9_DPRINTK(P9_DEBUG_VFS, "name %s\n", dentry->d_name.name);
308 v9ses = v9fs_inode2v9ses(dir);
311 if (dir->i_mode & S_ISGID)
314 dir_dentry = v9fs_dentry_from_dir_inode(dir);
315 dfid = v9fs_fid_lookup(dir_dentry);
318 P9_DPRINTK(P9_DEBUG_VFS, "fid lookup failed %d\n", err);
323 gid = v9fs_get_fsgid_for_create(dir);
325 /* Update mode based on ACL value */
326 err = v9fs_acl_mode(dir, &mode, &dacl, &pacl);
328 P9_DPRINTK(P9_DEBUG_VFS,
329 "Failed to get acl values in mkdir %d\n", err);
332 name = (char *) dentry->d_name.name;
333 err = p9_client_mkdir_dotl(dfid, name, mode, gid, &qid);
337 /* instantiate inode and assign the unopened fid to the dentry */
338 if (v9ses->cache == CACHE_LOOSE || v9ses->cache == CACHE_FSCACHE) {
339 fid = p9_client_walk(dfid, 1, &name, 1);
342 P9_DPRINTK(P9_DEBUG_VFS, "p9_client_walk failed %d\n",
348 inode = v9fs_get_inode_from_fid(v9ses, fid, dir->i_sb);
350 err = PTR_ERR(inode);
351 P9_DPRINTK(P9_DEBUG_VFS, "inode creation failed %d\n",
355 d_instantiate(dentry, inode);
356 err = v9fs_fid_add(dentry, fid);
362 * Not in cached mode. No need to populate
363 * inode with stat. We need to get an inode
364 * so that we can set the acl with dentry
366 inode = v9fs_get_inode(dir->i_sb, mode);
368 err = PTR_ERR(inode);
371 d_instantiate(dentry, inode);
373 /* Now set the ACL based on the default value */
374 v9fs_set_create_acl(dentry, dacl, pacl);
376 v9fs_invalidate_inode_attr(dir);
379 p9_client_clunk(fid);
384 v9fs_vfs_getattr_dotl(struct vfsmount *mnt, struct dentry *dentry,
388 struct v9fs_session_info *v9ses;
390 struct p9_stat_dotl *st;
392 P9_DPRINTK(P9_DEBUG_VFS, "dentry: %p\n", dentry);
394 v9ses = v9fs_inode2v9ses(dentry->d_inode);
395 if (v9ses->cache == CACHE_LOOSE || v9ses->cache == CACHE_FSCACHE) {
396 generic_fillattr(dentry->d_inode, stat);
399 fid = v9fs_fid_lookup(dentry);
403 /* Ask for all the fields in stat structure. Server will return
404 * whatever it supports
407 st = p9_client_getattr_dotl(fid, P9_STATS_ALL);
411 v9fs_stat2inode_dotl(st, dentry->d_inode);
412 generic_fillattr(dentry->d_inode, stat);
413 /* Change block size to what the server returned */
414 stat->blksize = st->st_blksize;
421 * v9fs_vfs_setattr_dotl - set file metadata
422 * @dentry: file whose metadata to set
423 * @iattr: metadata assignment structure
427 int v9fs_vfs_setattr_dotl(struct dentry *dentry, struct iattr *iattr)
430 struct v9fs_session_info *v9ses;
432 struct p9_iattr_dotl p9attr;
434 P9_DPRINTK(P9_DEBUG_VFS, "\n");
436 retval = inode_change_ok(dentry->d_inode, iattr);
440 p9attr.valid = iattr->ia_valid;
441 p9attr.mode = iattr->ia_mode;
442 p9attr.uid = iattr->ia_uid;
443 p9attr.gid = iattr->ia_gid;
444 p9attr.size = iattr->ia_size;
445 p9attr.atime_sec = iattr->ia_atime.tv_sec;
446 p9attr.atime_nsec = iattr->ia_atime.tv_nsec;
447 p9attr.mtime_sec = iattr->ia_mtime.tv_sec;
448 p9attr.mtime_nsec = iattr->ia_mtime.tv_nsec;
451 v9ses = v9fs_inode2v9ses(dentry->d_inode);
452 fid = v9fs_fid_lookup(dentry);
456 if ((iattr->ia_valid & ATTR_SIZE) &&
457 iattr->ia_size != i_size_read(dentry->d_inode)) {
458 retval = vmtruncate(dentry->d_inode, iattr->ia_size);
462 /* Write all dirty data */
463 if (S_ISREG(dentry->d_inode->i_mode))
464 filemap_write_and_wait(dentry->d_inode->i_mapping);
466 retval = p9_client_setattr(fid, &p9attr);
469 v9fs_invalidate_inode_attr(dentry->d_inode);
471 setattr_copy(dentry->d_inode, iattr);
472 mark_inode_dirty(dentry->d_inode);
473 if (iattr->ia_valid & ATTR_MODE) {
474 /* We also want to update ACL when we update mode bits */
475 retval = v9fs_acl_chmod(dentry);
483 * v9fs_stat2inode_dotl - populate an inode structure with stat info
484 * @stat: stat structure
485 * @inode: inode to populate
486 * @sb: superblock of filesystem
491 v9fs_stat2inode_dotl(struct p9_stat_dotl *stat, struct inode *inode)
493 struct v9fs_inode *v9inode = V9FS_I(inode);
495 if ((stat->st_result_mask & P9_STATS_BASIC) == P9_STATS_BASIC) {
496 inode->i_atime.tv_sec = stat->st_atime_sec;
497 inode->i_atime.tv_nsec = stat->st_atime_nsec;
498 inode->i_mtime.tv_sec = stat->st_mtime_sec;
499 inode->i_mtime.tv_nsec = stat->st_mtime_nsec;
500 inode->i_ctime.tv_sec = stat->st_ctime_sec;
501 inode->i_ctime.tv_nsec = stat->st_ctime_nsec;
502 inode->i_uid = stat->st_uid;
503 inode->i_gid = stat->st_gid;
504 inode->i_nlink = stat->st_nlink;
505 inode->i_mode = stat->st_mode;
506 inode->i_rdev = new_decode_dev(stat->st_rdev);
508 if ((S_ISBLK(inode->i_mode)) || (S_ISCHR(inode->i_mode)))
509 init_special_inode(inode, inode->i_mode, inode->i_rdev);
511 i_size_write(inode, stat->st_size);
512 inode->i_blocks = stat->st_blocks;
514 if (stat->st_result_mask & P9_STATS_ATIME) {
515 inode->i_atime.tv_sec = stat->st_atime_sec;
516 inode->i_atime.tv_nsec = stat->st_atime_nsec;
518 if (stat->st_result_mask & P9_STATS_MTIME) {
519 inode->i_mtime.tv_sec = stat->st_mtime_sec;
520 inode->i_mtime.tv_nsec = stat->st_mtime_nsec;
522 if (stat->st_result_mask & P9_STATS_CTIME) {
523 inode->i_ctime.tv_sec = stat->st_ctime_sec;
524 inode->i_ctime.tv_nsec = stat->st_ctime_nsec;
526 if (stat->st_result_mask & P9_STATS_UID)
527 inode->i_uid = stat->st_uid;
528 if (stat->st_result_mask & P9_STATS_GID)
529 inode->i_gid = stat->st_gid;
530 if (stat->st_result_mask & P9_STATS_NLINK)
531 inode->i_nlink = stat->st_nlink;
532 if (stat->st_result_mask & P9_STATS_MODE) {
533 inode->i_mode = stat->st_mode;
534 if ((S_ISBLK(inode->i_mode)) ||
535 (S_ISCHR(inode->i_mode)))
536 init_special_inode(inode, inode->i_mode,
539 if (stat->st_result_mask & P9_STATS_RDEV)
540 inode->i_rdev = new_decode_dev(stat->st_rdev);
541 if (stat->st_result_mask & P9_STATS_SIZE)
542 i_size_write(inode, stat->st_size);
543 if (stat->st_result_mask & P9_STATS_BLOCKS)
544 inode->i_blocks = stat->st_blocks;
546 if (stat->st_result_mask & P9_STATS_GEN)
547 inode->i_generation = stat->st_gen;
549 /* Currently we don't support P9_STATS_BTIME and P9_STATS_DATA_VERSION
550 * because the inode structure does not have fields for them.
552 v9inode->cache_validity &= ~V9FS_INO_INVALID_ATTR;
556 v9fs_vfs_symlink_dotl(struct inode *dir, struct dentry *dentry,
565 struct p9_fid *fid = NULL;
566 struct v9fs_session_info *v9ses;
568 name = (char *) dentry->d_name.name;
569 P9_DPRINTK(P9_DEBUG_VFS, "v9fs_vfs_symlink_dotl : %lu,%s,%s\n",
570 dir->i_ino, name, symname);
571 v9ses = v9fs_inode2v9ses(dir);
573 dfid = v9fs_fid_lookup(dentry->d_parent);
576 P9_DPRINTK(P9_DEBUG_VFS, "fid lookup failed %d\n", err);
580 gid = v9fs_get_fsgid_for_create(dir);
582 /* Server doesn't alter fid on TSYMLINK. Hence no need to clone it. */
583 err = p9_client_symlink(dfid, name, (char *)symname, gid, &qid);
586 P9_DPRINTK(P9_DEBUG_VFS, "p9_client_symlink failed %d\n", err);
590 v9fs_invalidate_inode_attr(dir);
592 /* Now walk from the parent so we can get an unopened fid. */
593 fid = p9_client_walk(dfid, 1, &name, 1);
596 P9_DPRINTK(P9_DEBUG_VFS, "p9_client_walk failed %d\n",
602 /* instantiate inode and assign the unopened fid to dentry */
603 inode = v9fs_get_inode_from_fid(v9ses, fid, dir->i_sb);
605 err = PTR_ERR(inode);
606 P9_DPRINTK(P9_DEBUG_VFS, "inode creation failed %d\n",
610 d_instantiate(dentry, inode);
611 err = v9fs_fid_add(dentry, fid);
616 /* Not in cached mode. No need to populate inode with stat */
617 inode = v9fs_get_inode(dir->i_sb, S_IFLNK);
619 err = PTR_ERR(inode);
622 d_instantiate(dentry, inode);
627 p9_client_clunk(fid);
633 * v9fs_vfs_link_dotl - create a hardlink for dotl
634 * @old_dentry: dentry for file to link to
635 * @dir: inode destination for new link
636 * @dentry: dentry for link
641 v9fs_vfs_link_dotl(struct dentry *old_dentry, struct inode *dir,
642 struct dentry *dentry)
646 struct dentry *dir_dentry;
647 struct p9_fid *dfid, *oldfid;
648 struct v9fs_session_info *v9ses;
650 P9_DPRINTK(P9_DEBUG_VFS, "dir ino: %lu, old_name: %s, new_name: %s\n",
651 dir->i_ino, old_dentry->d_name.name,
652 dentry->d_name.name);
654 v9ses = v9fs_inode2v9ses(dir);
655 dir_dentry = v9fs_dentry_from_dir_inode(dir);
656 dfid = v9fs_fid_lookup(dir_dentry);
658 return PTR_ERR(dfid);
660 oldfid = v9fs_fid_lookup(old_dentry);
662 return PTR_ERR(oldfid);
664 name = (char *) dentry->d_name.name;
666 err = p9_client_link(dfid, oldfid, (char *)dentry->d_name.name);
669 P9_DPRINTK(P9_DEBUG_VFS, "p9_client_link failed %d\n", err);
673 v9fs_invalidate_inode_attr(dir);
674 if (v9ses->cache == CACHE_LOOSE || v9ses->cache == CACHE_FSCACHE) {
675 /* Get the latest stat info from server. */
677 fid = v9fs_fid_lookup(old_dentry);
681 v9fs_refresh_inode_dotl(fid, old_dentry->d_inode);
683 ihold(old_dentry->d_inode);
684 d_instantiate(dentry, old_dentry->d_inode);
690 * v9fs_vfs_mknod_dotl - create a special file
691 * @dir: inode destination for new link
692 * @dentry: dentry for file
693 * @mode: mode for creation
694 * @rdev: device associated with special file
698 v9fs_vfs_mknod_dotl(struct inode *dir, struct dentry *dentry, int omode,
705 struct v9fs_session_info *v9ses;
706 struct p9_fid *fid = NULL, *dfid = NULL;
709 struct dentry *dir_dentry;
710 struct posix_acl *dacl = NULL, *pacl = NULL;
712 P9_DPRINTK(P9_DEBUG_VFS,
713 " %lu,%s mode: %x MAJOR: %u MINOR: %u\n", dir->i_ino,
714 dentry->d_name.name, omode, MAJOR(rdev), MINOR(rdev));
716 if (!new_valid_dev(rdev))
719 v9ses = v9fs_inode2v9ses(dir);
720 dir_dentry = v9fs_dentry_from_dir_inode(dir);
721 dfid = v9fs_fid_lookup(dir_dentry);
724 P9_DPRINTK(P9_DEBUG_VFS, "fid lookup failed %d\n", err);
729 gid = v9fs_get_fsgid_for_create(dir);
731 /* Update mode based on ACL value */
732 err = v9fs_acl_mode(dir, &mode, &dacl, &pacl);
734 P9_DPRINTK(P9_DEBUG_VFS,
735 "Failed to get acl values in mknod %d\n", err);
738 name = (char *) dentry->d_name.name;
740 err = p9_client_mknod_dotl(dfid, name, mode, rdev, gid, &qid);
744 v9fs_invalidate_inode_attr(dir);
745 /* instantiate inode and assign the unopened fid to the dentry */
746 if (v9ses->cache == CACHE_LOOSE || v9ses->cache == CACHE_FSCACHE) {
747 fid = p9_client_walk(dfid, 1, &name, 1);
750 P9_DPRINTK(P9_DEBUG_VFS, "p9_client_walk failed %d\n",
756 inode = v9fs_get_inode_from_fid(v9ses, fid, dir->i_sb);
758 err = PTR_ERR(inode);
759 P9_DPRINTK(P9_DEBUG_VFS, "inode creation failed %d\n",
763 d_instantiate(dentry, inode);
764 err = v9fs_fid_add(dentry, fid);
770 * Not in cached mode. No need to populate inode with stat.
771 * socket syscall returns a fd, so we need instantiate
773 inode = v9fs_get_inode(dir->i_sb, mode);
775 err = PTR_ERR(inode);
778 d_instantiate(dentry, inode);
780 /* Now set the ACL based on the default value */
781 v9fs_set_create_acl(dentry, dacl, pacl);
784 p9_client_clunk(fid);
789 * v9fs_vfs_follow_link_dotl - follow a symlink path
790 * @dentry: dentry for symlink
796 v9fs_vfs_follow_link_dotl(struct dentry *dentry, struct nameidata *nd)
800 char *link = __getname();
803 P9_DPRINTK(P9_DEBUG_VFS, "%s\n", dentry->d_name.name);
806 link = ERR_PTR(-ENOMEM);
809 fid = v9fs_fid_lookup(dentry);
812 link = ERR_PTR(PTR_ERR(fid));
815 retval = p9_client_readlink(fid, &target);
817 strcpy(link, target);
822 link = ERR_PTR(retval);
824 nd_set_link(nd, link);
828 int v9fs_refresh_inode_dotl(struct p9_fid *fid, struct inode *inode)
831 struct p9_stat_dotl *st;
832 struct v9fs_session_info *v9ses;
834 v9ses = v9fs_inode2v9ses(inode);
835 st = p9_client_getattr_dotl(fid, P9_STATS_ALL);
839 spin_lock(&inode->i_lock);
841 * We don't want to refresh inode->i_size,
842 * because we may have cached data
844 i_size = inode->i_size;
845 v9fs_stat2inode_dotl(st, inode);
847 inode->i_size = i_size;
848 spin_unlock(&inode->i_lock);
853 const struct inode_operations v9fs_dir_inode_operations_dotl = {
854 .create = v9fs_vfs_create_dotl,
855 .lookup = v9fs_vfs_lookup,
856 .link = v9fs_vfs_link_dotl,
857 .symlink = v9fs_vfs_symlink_dotl,
858 .unlink = v9fs_vfs_unlink,
859 .mkdir = v9fs_vfs_mkdir_dotl,
860 .rmdir = v9fs_vfs_rmdir,
861 .mknod = v9fs_vfs_mknod_dotl,
862 .rename = v9fs_vfs_rename,
863 .getattr = v9fs_vfs_getattr_dotl,
864 .setattr = v9fs_vfs_setattr_dotl,
865 .setxattr = generic_setxattr,
866 .getxattr = generic_getxattr,
867 .removexattr = generic_removexattr,
868 .listxattr = v9fs_listxattr,
869 .check_acl = v9fs_check_acl,
872 const struct inode_operations v9fs_file_inode_operations_dotl = {
873 .getattr = v9fs_vfs_getattr_dotl,
874 .setattr = v9fs_vfs_setattr_dotl,
875 .setxattr = generic_setxattr,
876 .getxattr = generic_getxattr,
877 .removexattr = generic_removexattr,
878 .listxattr = v9fs_listxattr,
879 .check_acl = v9fs_check_acl,
882 const struct inode_operations v9fs_symlink_inode_operations_dotl = {
883 .readlink = generic_readlink,
884 .follow_link = v9fs_vfs_follow_link_dotl,
885 .put_link = v9fs_vfs_put_link,
886 .getattr = v9fs_vfs_getattr_dotl,
887 .setattr = v9fs_vfs_setattr_dotl,
888 .setxattr = generic_setxattr,
889 .getxattr = generic_getxattr,
890 .removexattr = generic_removexattr,
891 .listxattr = v9fs_listxattr,