Skip to content

Commit

Permalink
fuse: cleanup in fuse_notify_inval_...()
Browse files Browse the repository at this point in the history
Small cleanup in fuse_notify_inval_inode() and
fuse_notify_inval_entry().

Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
  • Loading branch information
Miklos Szeredi committed Feb 5, 2010
1 parent abe94c7 commit b21dda4
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions fs/fuse/dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -865,13 +865,10 @@ static int fuse_notify_inval_inode(struct fuse_conn *fc, unsigned int size,

down_read(&fc->killsb);
err = -ENOENT;
if (!fc->sb)
goto err_unlock;

err = fuse_reverse_inval_inode(fc->sb, outarg.ino,
outarg.off, outarg.len);

err_unlock:
if (fc->sb) {
err = fuse_reverse_inval_inode(fc->sb, outarg.ino,
outarg.off, outarg.len);
}
up_read(&fc->killsb);
return err;

Expand Down Expand Up @@ -910,12 +907,8 @@ static int fuse_notify_inval_entry(struct fuse_conn *fc, unsigned int size,

down_read(&fc->killsb);
err = -ENOENT;
if (!fc->sb)
goto err_unlock;

err = fuse_reverse_inval_entry(fc->sb, outarg.parent, &name);

err_unlock:
if (fc->sb)
err = fuse_reverse_inval_entry(fc->sb, outarg.parent, &name);
up_read(&fc->killsb);
return err;

Expand Down

0 comments on commit b21dda4

Please sign in to comment.