mirror of
https://github.com/torvalds/linux.git
synced 2024-11-12 07:01:57 +00:00
fuse: cleanup in fuse_notify_inval_...()
Small cleanup in fuse_notify_inval_inode() and fuse_notify_inval_entry(). Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
This commit is contained in:
parent
abe94c756c
commit
b21dda438b
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user