aboutsummaryrefslogtreecommitdiff
path: root/weed/filesys/dir.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2020-02-25 22:37:54 -0800
committerChris Lu <chris.lu@gmail.com>2020-02-25 22:37:54 -0800
commitfd9612d66ef69ba699cd733eccf1ef9940c1d91f (patch)
tree6d3c1ad99ea8e69fd64e5ca9ea8b9e1ab2d605d2 /weed/filesys/dir.go
parent86cce3eb58f959066d2d11b8dde82a694e8f0999 (diff)
downloadseaweedfs-fd9612d66ef69ba699cd733eccf1ef9940c1d91f.tar.xz
seaweedfs-fd9612d66ef69ba699cd733eccf1ef9940c1d91f.zip
remove ctx
Diffstat (limited to 'weed/filesys/dir.go')
-rw-r--r--weed/filesys/dir.go14
1 files changed, 7 insertions, 7 deletions
diff --git a/weed/filesys/dir.go b/weed/filesys/dir.go
index c897ed827..7dcd45f2e 100644
--- a/weed/filesys/dir.go
+++ b/weed/filesys/dir.go
@@ -46,7 +46,7 @@ func (dir *Dir) Attr(ctx context.Context, attr *fuse.Attr) error {
return nil
}
- if err := dir.maybeLoadEntry(ctx); err != nil {
+ if err := dir.maybeLoadEntry(); err != nil {
glog.V(3).Infof("dir Attr %s,err: %+v", dir.Path, err)
return err
}
@@ -67,7 +67,7 @@ func (dir *Dir) Getxattr(ctx context.Context, req *fuse.GetxattrRequest, resp *f
glog.V(4).Infof("dir Getxattr %s", dir.Path)
- if err := dir.maybeLoadEntry(ctx); err != nil {
+ if err := dir.maybeLoadEntry(); err != nil {
return err
}
@@ -332,7 +332,7 @@ func (dir *Dir) Setattr(ctx context.Context, req *fuse.SetattrRequest, resp *fus
glog.V(3).Infof("%v dir setattr %+v", dir.Path, req)
- if err := dir.maybeLoadEntry(ctx); err != nil {
+ if err := dir.maybeLoadEntry(); err != nil {
return err
}
@@ -362,7 +362,7 @@ func (dir *Dir) Setxattr(ctx context.Context, req *fuse.SetxattrRequest) error {
glog.V(4).Infof("dir Setxattr %s: %s", dir.Path, req.Name)
- if err := dir.maybeLoadEntry(ctx); err != nil {
+ if err := dir.maybeLoadEntry(); err != nil {
return err
}
@@ -380,7 +380,7 @@ func (dir *Dir) Removexattr(ctx context.Context, req *fuse.RemovexattrRequest) e
glog.V(4).Infof("dir Removexattr %s: %s", dir.Path, req.Name)
- if err := dir.maybeLoadEntry(ctx); err != nil {
+ if err := dir.maybeLoadEntry(); err != nil {
return err
}
@@ -398,7 +398,7 @@ func (dir *Dir) Listxattr(ctx context.Context, req *fuse.ListxattrRequest, resp
glog.V(4).Infof("dir Listxattr %s", dir.Path)
- if err := dir.maybeLoadEntry(ctx); err != nil {
+ if err := dir.maybeLoadEntry(); err != nil {
return err
}
@@ -416,7 +416,7 @@ func (dir *Dir) Forget() {
dir.wfs.forgetNode(filer2.FullPath(dir.Path))
}
-func (dir *Dir) maybeLoadEntry(ctx context.Context) error {
+func (dir *Dir) maybeLoadEntry() error {
if dir.entry == nil {
parentDirPath, name := filer2.FullPath(dir.Path).DirAndName()
entry, err := dir.wfs.maybeLoadEntry(parentDirPath, name)