Commit b21dda43 authored by Miklos Szeredi's avatar Miklos Szeredi

fuse: cleanup in fuse_notify_inval_...()

Small cleanup in fuse_notify_inval_inode() and
fuse_notify_inval_entry().
Signed-off-by: default avatarMiklos Szeredi <mszeredi@suse.cz>
parent abe94c75
...@@ -865,13 +865,10 @@ static int fuse_notify_inval_inode(struct fuse_conn *fc, unsigned int size, ...@@ -865,13 +865,10 @@ static int fuse_notify_inval_inode(struct fuse_conn *fc, unsigned int size,
down_read(&fc->killsb); down_read(&fc->killsb);
err = -ENOENT; err = -ENOENT;
if (!fc->sb) if (fc->sb) {
goto err_unlock; err = fuse_reverse_inval_inode(fc->sb, outarg.ino,
outarg.off, outarg.len);
err = fuse_reverse_inval_inode(fc->sb, outarg.ino, }
outarg.off, outarg.len);
err_unlock:
up_read(&fc->killsb); up_read(&fc->killsb);
return err; return err;
...@@ -910,12 +907,8 @@ static int fuse_notify_inval_entry(struct fuse_conn *fc, unsigned int size, ...@@ -910,12 +907,8 @@ static int fuse_notify_inval_entry(struct fuse_conn *fc, unsigned int size,
down_read(&fc->killsb); down_read(&fc->killsb);
err = -ENOENT; err = -ENOENT;
if (!fc->sb) if (fc->sb)
goto err_unlock; err = fuse_reverse_inval_entry(fc->sb, outarg.parent, &name);
err = fuse_reverse_inval_entry(fc->sb, outarg.parent, &name);
err_unlock:
up_read(&fc->killsb); up_read(&fc->killsb);
return err; return err;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment