Whamcloud - gitweb
b=4726
authorgreen <green>
Mon, 27 Sep 2004 11:52:48 +0000 (11:52 +0000)
committergreen <green>
Mon, 27 Sep 2004 11:52:48 +0000 (11:52 +0000)
r=adilger
Return missed hunk to not call notify_change directly if setattr_raw is present

lustre/kernel_patches/patches/nfs_export_kernel-2.4.21-suse2.patch

index c1ed0f3..7954a67 100644 (file)
@@ -630,6 +630,18 @@ Index: linux-2.4.21-chaos/fs/nfsd/vfs.c
        if (!err) {
                if (EX_ISSYNC(fhp->fh_export))
                        nfsd_sync_dir(dentry);
+@@ -1148,7 +1329,10 @@ nfsd_symlink(struct svc_rqst *rqstp, str
+                               iap->ia_valid |= ATTR_CTIME;
+                               iap->ia_mode = (iap->ia_mode&S_IALLUGO)
+                                       | S_IFLNK;
+-                              err = notify_change(dnew, iap);
++                              if (dnew->d_inode->i_op && dnew->d_inode->i_op->setattr_raw)
++                                      err = setattr_raw(dnew->d_inode, iap);
++                              else
++                                      err = notify_change(dnew, iap);
+                               if (err)
+                                       err = nfserrno(err);
+                               else if (EX_ISSYNC(fhp->fh_export))
 @@ -1211,7 +1392,10 @@
        dold = tfhp->fh_dentry;
        dest = dold->d_inode;