diff options
Diffstat (limited to 'fs/xfs/linux-2.6/xfs_iops.c')
-rw-r--r-- | fs/xfs/linux-2.6/xfs_iops.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/fs/xfs/linux-2.6/xfs_iops.c b/fs/xfs/linux-2.6/xfs_iops.c index 4bd3d03b23ed..76c6df34d0db 100644 --- a/fs/xfs/linux-2.6/xfs_iops.c +++ b/fs/xfs/linux-2.6/xfs_iops.c | |||
@@ -56,9 +56,6 @@ | |||
56 | #include <linux/namei.h> | 56 | #include <linux/namei.h> |
57 | #include <linux/security.h> | 57 | #include <linux/security.h> |
58 | 58 | ||
59 | #define IS_NOATIME(inode) ((inode->i_sb->s_flags & MS_NOATIME) || \ | ||
60 | (S_ISDIR(inode->i_mode) && inode->i_sb->s_flags & MS_NODIRATIME)) | ||
61 | |||
62 | /* | 59 | /* |
63 | * Get a XFS inode from a given vnode. | 60 | * Get a XFS inode from a given vnode. |
64 | */ | 61 | */ |
@@ -474,11 +471,14 @@ linvfs_symlink( | |||
474 | 471 | ||
475 | error = 0; | 472 | error = 0; |
476 | VOP_SYMLINK(dvp, dentry, &va, (char *)symname, &cvp, NULL, error); | 473 | VOP_SYMLINK(dvp, dentry, &va, (char *)symname, &cvp, NULL, error); |
477 | if (!error && cvp) { | 474 | if (likely(!error && cvp)) { |
478 | ip = LINVFS_GET_IP(cvp); | 475 | error = linvfs_init_security(cvp, dir); |
479 | d_instantiate(dentry, ip); | 476 | if (likely(!error)) { |
480 | validate_fields(dir); | 477 | ip = LINVFS_GET_IP(cvp); |
481 | validate_fields(ip); /* size needs update */ | 478 | d_instantiate(dentry, ip); |
479 | validate_fields(dir); | ||
480 | validate_fields(ip); | ||
481 | } | ||
482 | } | 482 | } |
483 | return -error; | 483 | return -error; |
484 | } | 484 | } |